Değişen Yazılar / Changing Letter Animation - HTML5 - CSS3 - Ders17

Değişen Yazılar / Changing Letter Animation - HTML5 - CSS3 - Ders17





HTML İÇERİĞİ:


<!DOCTYPE html>
<html>
<head>
<title>Değişen Yazılar</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="style.css">
<body>
<h1>I Love <span></span>Evet !!</h1>
</body>
</head>
</html>



CSS İÇERİĞİ:



body{
margin: 0;
padding: 0;
background: lightblue;
}
h1{
margin: 200px 0 0 200px;
padding: 0;
font-family: arial;
font-size: 5em;
text-shadow: 0 2px 0 rgba(0,0,0,.5);
color: #484848;
}
span:before{
content:'HTML';
color: black;
animation: yazı infinite 8s;
}
@keyframes yazı{
0%{content:'HTML';}
25%{content:'CSS';}
50%{content:'Js';}
75%{content:'jQeury';}
100%{content:'HTML';}
}

Yorumlar