Could someone please help me with creating an animation for one of my CSS DIVs? I want it to have an exit/entry effect with rotation/fadeout and then rotation/fadein, with a 10-minute delay between each iteration.
I'm not sure if this can be achieved purely with CSS, or if I need to incorporate JavaScript for the complete animation. Unfortunately, JavaScript is not my strong suit.
Here is the code for the DIV that I am working with:
@import url(https://fonts.googleapis.com/css?family=Lobster);
body {
font-family: 'Lobster', cursive;
}
.circle {
margin: auto;
height: 150px;
width: 150px;
border-radius: 100%;
background: #c4af7f;
margin-top:20px;
}
h1 {
color: #D5E2D6;
text-align: center;
line-height: 40px;
margin-top: -170px;
-moz-transform: scale(1) rotate(-5deg) translateX(0px) translateY(0px) skewX(1deg) skewY(1deg);
-webkit-transform: scale(1) rotate(-5deg) translateX(0px) translateY(0px) skewX(1deg) skewY(1deg);
-o-transform: scale(1) rotate(-5deg) translateX(0px) translateY(0px) skewX(1deg) skewY(1deg);
-ms-transform: scale(1) rotate(-5deg) translateX(0px) translateY(0px) skewX(1deg) skewY(1deg);
transform: scale(1) rotate(-5deg) translateX(0px) translateY(0px) skewX(1deg) skewY(1deg);
/* Text shadow properties */
text-shadow: ...;
}
/* Styling for spans within h1 */
span:nth-child(1), span:nth-child(7) {
font-size: 30px;
}
span:nth-child(2), span:nth-child(3), span:nth-child(5) {
font-size: 55px;
}
<div class="circle"></div>
<h1><span>La</span><br/><span>Matinale</span><br/><span>Simulation</span></h1>
Your assistance would be greatly appreciated!