JSFiddle - React, Tailwind, and code Playground
by p_russell
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Animate with extension</title>
<link rel="stylesheet" href="style.css">
<link href="https://fonts.googleapis.com/css?family=Montserrat" rel="stylesheet">
</head>
<body>
<!-- container begins -->
<div class="container">
<div>
<h1>Welcome to animations!</h1>
<p>These animations are created by <strike> CSS</strike> a Chrome extension <b>
<a href="https://keyframes.app/" target="_blank">Keyframes</a></b>
developed by <a href="https://mitch.works/"
target="_blank">Mitch Samuels</a>.</p>
<a href="https://chrome.google.com/webstore/detail/keyframes/dalaiblmpeklkjnpeocmaojcfldmbfck" target="_blank" class="button">Get the extension</a>
</div>
</div>
<!-- container ends -->
</body>
</html>
CSS
body{
background: #f1f1f1;
font-family: 'Montserrat', sans-serif;
margin: 0;
}
.container{
background: rgb(103, 170, 89);
padding: 5em;
color: #fff;
width: 500px
}
h1{
font-size: 2em;
}
p{
font-size: 1em;
line-height: 1.0em;
}
a.button{
display: inline-block;
padding: .5em;
background: rgb(242, 255, 196);
border-radius: 20px;
color: rgb(103, 170, 89);
text-decoration: none;
margin-top: 10px;
font-size: 1.0em;
font-weight: bold;
}
@keyframes yourAnimation{
0%{ transform: rotate(90deg) scale(0.001);
}
99%{
transform: rotate(0deg) scale(1.0);
}
}
.container{
animation: yourAnimation 1s 1 0s linear;
}