Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- *{
- font-family: Verdana, Geneva, Tahome, sans-serif;
- }
- h4{
- position: absolute;
- top: 50%;
- left: 50%;
- transform: translate(-50%, -50%);
- font-size: 5em;
- color: rgb(22,22,22);
- text-transform: uppercase;
- }
- h4:before{
- content: attr(data-text);
- position: absolute;
- left: 0%
- top:0%;
- width: 0%;
- color: dodgerblue;
- overflow: hidden;
- transition: .5s;
- }
- h4:hover:before{
- width: 100%
- }
- body {
- background: blueviolet;
- }
- .container {
- position: absolute;
- left: 50%;
- top: 50%;
- transform: translate(-50%, -50%);
- }
- .circle-container {
- width: 400px;
- height: 300px;
- position: absolute;
- left: 50%;
- top: 50%;
- transform: translate(-50%, -50%);
- }
- .circle-container:after {
- content: '';
- position: absolute;
- width: 20px;
- height: 5px;
- border-radius: 50%;
- background: #000;
- bottom: 0;
- opacity: 0.4;
- left: 50%;
- animation: shadow 2s linear infinite;
- }
- .circle-container:nth-child(2):after {
- animation-delay: -0.3s;
- }
- .circle-container:nth-child(3):after {
- animation-delay: -0.6s;
- }
- .circle {
- width: 15px;
- height: 15px;
- background: #fff;
- left: 50%;
- top: 50%;
- border-radius: 50%;
- position: absolute;
- anima
- tion: anim 2s linear infinite;
- }
- .circle-container:nth-child(2) .circle {
- animation-delay: -0.3s;
- }
- .circle-container:nth-child(3) .circle {
- animation-delay: -0.6s;
- }
- @keyframes anim {
- 0% {
- transform-origin: 400% 50%;
- }
- 50% {
- transform: rotate(360deg);
- transform-origin: 400% 50%;
- }
- 50.1% {
- transform: rotate(0);
- transform-origin: -300% 50%;
- }
- 100% {
- transform: rotate(-360deg);
- transform-origin: -300% 50%;
- }
- }
- @keyframes shadow {
- 0% {
- }
- 12.5% {
- transform: translate(50px) scale(0.6);
- }
- 25% {
- transform: translate(120px);
- }
- 37.5% {
- transform: translate(50px) scale(1.4);
- }
- 50% {
- transform: translate(0px);
- }
- 62.5% {
- transform: translate(-50px) scale(0.6);
- }
- 75% {
- transform: translate(-120px);
- }
- 87.5% {
- transform: translate(-50px) scale(1.4);
- }
- 100% {
- transform: translate(0px);
- }
- }
Add Comment
Please, Sign In to add comment