<! DOCTYPE html>
<meta charset= "UTF-8" >
<title>22222</title>
<style>
. form{
width:405px;
height:200px;
Background:yellow;
position:relative;
Overflow:hidden;
margin:30px Auto;
}
. corner{
Background:-webkit-linear-gradient (45deg, #2e2e2e 24%, #5F5F5F 40%, #6f6f6f 43%, #5F5F5F 46%, #2F2F2F 50%, #fff 50%, #fff);
width:90px;
height:90px;
border-radius:0 0 0px 90px/0 0 0 30px;
-webkit-transform:rotate ( -90DEG);
Position:absolute;
left:-4px;
Top: -4px;
box-shadow:5px 2px 8px Black;
Overflow:hidden;
-webkit-transition:all 0.3s linear 0s;
}
. corner:after{
height:100%;
width:100%;
Position:absolute;
Content: "56666666666";
Top: -15px;
Left: -82px;
border-radius:90px 90px 0px 0/40px 40px 0 0;
Z-index:1;
Background:blue;
-webkit-transform:rotate (77DEG);
box-shadow:0px 0px 8px black inset;
}
</style>
<body>
<div class= "Page" >
<div class= "form" id= "form" >
<div class= "Corner" id= "Corner" >
</div>
</div>
</div>
<script type= "Text/javascript" >
var form = document.getElementById ("form");
var corner = document.getElementById ("Corner")
var ftop = form.offsettop;
var fleft = Form.offsetleft;
var switchopen = 0;
Corner.onmousedown = function (e) {
E.preventdefault ();
Form.style.cursor = "Move";
Switchopen = 1;
}
Form.onmousemove = function (e) {
if (Switchopen = = 1) {
if (E.pagex-fleft > | | e.pagey-ftop > 90) {
Corner.style.width = Corner.style.height = + + "px";
Corner.style.left = Corner.style.top =-4 + "px"
}
else {
Corner.style.width = Corner.style.height = e.pagey-ftop + "px";
}
}
}
Form.onmouseup = function () {
Switchopen = 0;
This.style.cursor = "Default";
}
</script>
</body>
CSS Roll-leaf effect