Achieve resultsImplementation Codehtml <div>123WORDPRESS.COM</div> <div> <span>https://www.jb51.net</span> </div> <p>a css3 animation demo</p> CSS3 @import url('https://fonts.googleapis.com/css?family=Roboto:300'); body { text-align:center; background: linear-gradient(141deg, #ccc 25%, #eee 40%, #ddd 55%); color:#555; font-family:'Roboto'; font-weight:300; font-size:32px; padding-top:40vh; height:100vh; overflow:hidden; -webkit-backface-visibility: hidden; -webkit-perspective: 1000; -webkit-transform: translate3d(0,0,0); } div { display:inline-block; overflow:hidden; white-space:nowrap; } div:first-of-type { /* For increasing performance ID/Class should've been used. For a small demo it's okaish for now */ animation: showup 7s infinite; } div:last-of-type { width:0px; animation: reveal 7s infinite; } div:last-of-type span { margin-left:-355px; animation: slidein 7s infinite; } @keyframes showup { 0% {opacity:0;} 20% {opacity:1;} 80% {opacity:1;} 100% {opacity:0;} } @keyframes slidein { 0% { margin-left:-800px; } 20% { margin-left:-800px; } 35% { margin-left:0px; } 100% { margin-left:0px; } } @keyframes reveal { 0% {opacity:0;width:0px;} 20% {opacity:1;width:0px;} 30% {width:355px;} 80% {opacity:1;} 100% {opacity:0;width:355px;} } p { font-size:12px; color:#999; margin-top:200px; } The above is the details of the text pop-up effects implemented by CSS3. For more information about CSS3 text pop-up effects, please pay attention to other related articles on 123WORDPRESS.COM! |
<<: MySQL database terminal - common operation command codes
>>: Implementation of textarea adaptive height solution in Vue
By default, the width and height of the cell are ...
This article example shares the specific code of ...
Table of contents 1. Control the display and hidi...
How to create a virtual machine on VMware and ins...
If you want the application service in the Docker...
The <base> tag specifies the default addres...
Preface: Mybatis special character processing, pr...
For .net development, I am more familiar with Mic...
1. The effect diagram implemented in this article...
1. Install Docker on the server yum install docke...
MySQL allows you to create multiple indexes on th...
There are three date types in MySQL: date(year-mo...
Two parameters of Mysql paging select * from user...
need Configuring DingTalk alarms in Zabbix is s...
First create a specific project directory for you...