I decided to use this unique font for my design. I wanted to create a visual representation of the sun and clouds, making sure they always move together regardless of window size:
.sun:before{content:'\f113'; font-size:7em;color: #fbac13; font-family: iconvault;font-style:normal;-webkit-animation: rotation 5s linear infinite}
.cloud:after{content:'\f106'; font-size:7em; ; font-family: iconvault;font-style: normal;color: rgb(146, 157, 173);-webkit-animation: move 2s linear alternate infinite;text-shadow: 6px 5px 10px white,-5px -5px 10px white,-5px -5px 20px white,-5px -5px 20px white;}
@-webkit-keyframes rotation {from {transform: rotate(0deg);}to {transform: rotate(90deg);}}
@-webkit-keyframes move {from {transform: translate(-20px) ;}to {transform: translate(0px) }}
I was confused about the usage of absolute
, relative
, fixed
, and static
in this context as the website utilized absolute
.
Please forgive my novice question.
Note: I chose not to use before
with after
as I may need to incorporate more than two icons (such as a sun, cloud, snowflake, or thunder).