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