Response-style cream Effect

Source: Internet
Author: User

Okay. Continue with the CSS3 test. Let's take a look at the responsive three-dimensional effect implemented by text-shadow.


Click here for online research and click here to download the favorite stamp.

Principle Analysis

1. Use the googlefont font. Three fonts are used in this effect.

2. Use text-shadow to implement stereoscopic characters

3. Responsive Layout

Steps

Html

<link href='http://fonts.googleapis.com/css?family=Bad+Script|Atomic+Age|Paprika' rel='stylesheet' type='text/css'>Css

body {   font-family: 'Bad Script', cursive;    background: #abdc28;    transition:all .8s ease-in-out;    -o-transition:all .8s ease-in-out;    -moz-transition:all .8s ease-in-out;    -webkit-transition:all .8s ease-in-out;}h1 {    width: 100%;    font-size: 160px;    margin: 125px auto;    text-align: center;    color: #fff;    text-shadow: 0px 1px 1px #ddd,                  0px 2px 1px #d6d6d6,                  0px 3px 1px #ccc,                  0px 4px 1px #c5c5c5,                  0px 5px 1px #c1c1c1,                  0px 6px 1px #bbb,                  0px 7px 1px #777,                  0px 8px 3px rgba(100, 100, 100, 0.4),                  0px 9px 5px rgba(100, 100, 100, 0.1),                  0px 10px 7px rgba(100, 100, 100, 0.15),                  0px 11px 9px rgba(100, 100, 100, 0.2),                  0px 12px 11px rgba(100, 100, 100, 0.25),                  0px 13px 15px rgba(100, 100, 100, 0.3);    transition:all .8s ease-in-out;    -o-transition:all .8s ease-in-out;    -moz-transition:all .8s ease-in-out;    -webkit-transition:all .8s ease-in-out;}@media screen and (max-width:768px) {    body {        background:red;        font-family: 'Atomic Age', cursive;    }    h1 {        font-size:90px;    }}@media screen and (max-width:480px) {    body {        background:yellow;        font-family: 'Pinyon Script', cursive;    }    h1 {        font-size:50px;    }}
Finished, simple effect, no more words.

---------------------------------------------------------------

Front-end development of whqet, focus on web Front-end development technology, and share webpage-related resources.
---------------------------------------------------------------

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.