Hi all,
I'm currently trying to learn @keyframe animations, my css isn't bad but this is all new to me, now I have the following code:
This fades the page into view on load, which is ok, but of course I'm using it on body so it happens on all pages, no issue there really for me but it annoys some people.
Aaaanyway what I really want to do is adapt that code to the site sliding down or up into view rather than transitioning opacity, I've been trying and failing! keep in mind I only have access to css, I realise there are various .js methods too.
Any help would be awarded with a virtual high five!
Sean
I'm currently trying to learn @keyframe animations, my css isn't bad but this is all new to me, now I have the following code:
Code:
body {
-webkit-animation: fadein 2s;
/* Safari, Chrome and Opera > 12.1 */
-moz-animation: fadein 2s;
/* Firefox < 16 */
-o-animation: fadein 2s;
/* Opera < 12.1 */
animation: fadein 2s;
}
@keyframes fadein {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
/* Firefox < 16 */
@-moz-keyframes fadein {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
/* Safari, Chrome and Opera > 12.1 */
@-webkit-keyframes fadein {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
/* Opera < 12.1 */
@-o-keyframes fadein {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
This fades the page into view on load, which is ok, but of course I'm using it on body so it happens on all pages, no issue there really for me but it annoys some people.
Aaaanyway what I really want to do is adapt that code to the site sliding down or up into view rather than transitioning opacity, I've been trying and failing! keep in mind I only have access to css, I realise there are various .js methods too.
Any help would be awarded with a virtual high five!
Sean