<TITLE>CSS3 implementation of round mask mobile app effect Instance 丨 Web effect 丨 csrcode.cn</title>
<style>
. trans {
-webkit-transition:0.3s ease;
-moz-transition:0.3s ease;
-ms-transition:0.3s ease;
-o-transition:0.3s ease;
Transition:0.3s ease;
}
. test_outer {
width:320px;
height:480px;
Margin:1em Auto;
position:relative;
Overflow:hidden;
}
. test_cover {
width:60px;
height:60px;
border:480px solid Rgba (0, 0, 0,. 45);
border-radius:50%;
Position:absolute;
}
. test_cover_pos1 {
Left: -227px;
Top: -478px;
}
. test_cover_pos1:after {
Content: ' ▲ First select your city ';
margin:16px 0 0-140px;
}
. test_cover_pos2 {
Left: -447px;
Top: -378px;
}
. test_cover_pos2:after {
width:140px;
Content: ' ▲ new push map ordering service, give you a different experience! ‘;
margin:16px 0 0 60px;
}
. test_cover_pos3 {
Left: -337px;
Top: -48px;
}
. test_cover_pos3:after {
Content: ' ▲ call order at any time! ‘;
Margin: -20px 0 0-20px;
White-space:nowrap;
}
. Test_cover_pos1:after,. Test_cover_pos2:after,. Test_cover_pos3:after {
Color: #fff;
font-family: ' Microsoft ya Black ';
text-shadow:1px 1px rgba (0,0,0,.35);
Position:absolute;
}
</style>
<script language= "JavaScript" >
(function (Stepindex) {
var objstep = document.getElementById ("Testcover");
var funstep = function () {
Objstep.classname = ObjStep.className.replace (/\d/, (Stepindex + 1));
stepindex++;
if (Stepindex > 2) {
Stepindex = 0;
}
SetTimeout (Funstep, 3000);
};
SetTimeout (Funstep, 3000);
}) (1);
</script>
<body>
<div class= "Test_outer" >
<span id= "Testcover" class= "test_cover test_cover_pos1 Trans" ></span>
</div>
</body>
<br><font color=black>▲ Current IE8 and previous versions are incompatible CSS3, please use ie9/firefox/chrome browser to run this effect. <br>