Example of application effect of circular matte phone implemented by CSS3

Source: Internet
Author: User

<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>


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.