Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Move in a circle without wrapper elements
- * Idea by Aryeh Gregor, simplified by Lea Verou
- */
- @keyframes rot {
- from {
- transform: rotate(0deg)
- translate(-150px)
- rotate(0deg);
- }
- to {
- transform: rotate(360deg)
- translate(-150px)
- rotate(-360deg);
- }
- }
- .smile {
- width: 40px;
- height: 40px;
- position: absolute;
- top: 200px;
- left: 80%;
- margin: -20px;
- font-size: 100px;
- transform: translate(-650px,0);
- transition: transform 1s ease-in-out;
- //animation: 2s rot infinite linear;
- }
Add Comment
Please, Sign In to add comment