How can I make my image fade in on page load for both desktop and mobile devices? For now my code only works on mobile devices.
CSS:
#test img {
width: auto;
height: 50px;
position: absolute;
-webkit-animation: fadein 7s;
-moz-animation: fadein 7s;
-ms-animation: fadein 7s;
-o-animation: fadein 7s;
animation: fadein 7s;
}
@media only screen and (max-width: 768px) {
#test img {
width: auto;
height: 20px;
position: absolute;
}
}