mirror of
https://github.com/webslides/WebSlides.git
synced 2025-08-17 10:30:51 +02:00
2 new animations: .slideInLeft and .slideInRight
Mobile transitions between the slides
This commit is contained in:
committed by
GitHub
parent
8ae6954e5f
commit
f086aefe71
@@ -496,11 +496,13 @@ pre code {
|
|||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*=== 1.2 Animations ================
|
/*=== 1.2 Animations ================
|
||||||
Just 3 basic animations:
|
Just 5 basic animations:
|
||||||
.fadeIn, .fadeInUp, .zoomIn.
|
.fadeIn, .fadeInUp, .zoomIn, .slideInLeft, slideInRight
|
||||||
https://github.com/daneden/animate.css*/
|
https://github.com/daneden/animate.css*/
|
||||||
|
|
||||||
|
/*-- fadeIn -- */
|
||||||
@-webkit-keyframes fadeIn {
|
@-webkit-keyframes fadeIn {
|
||||||
from {
|
from {
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
@@ -532,6 +534,7 @@ https://github.com/daneden/animate.css*/
|
|||||||
animation: fadeIn 1s;
|
animation: fadeIn 1s;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*-- fadeInUp -- */
|
||||||
@-webkit-keyframes fadeInUp {
|
@-webkit-keyframes fadeInUp {
|
||||||
from {
|
from {
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
@@ -561,12 +564,11 @@ https://github.com/daneden/animate.css*/
|
|||||||
}
|
}
|
||||||
|
|
||||||
.fadeInUp {
|
.fadeInUp {
|
||||||
-webkit-animation-name: fadeInUp;
|
-webkit-animation: fadeInUp 1s;
|
||||||
animation-name: fadeInUp;
|
animation: fadeInUp 1s;
|
||||||
-webkit-animation-duration: 1s;
|
|
||||||
animation-duration: 1s;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*-- zoomIn -- */
|
||||||
@-webkit-keyframes zoomIn {
|
@-webkit-keyframes zoomIn {
|
||||||
from {
|
from {
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
@@ -596,6 +598,42 @@ https://github.com/daneden/animate.css*/
|
|||||||
animation: zoomIn 1s;
|
animation: zoomIn 1s;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*-- slideInLeft -- */
|
||||||
|
|
||||||
|
@keyframes slideInLeft {
|
||||||
|
from {
|
||||||
|
transform: translate3d(-100%, 0, 0);
|
||||||
|
visibility: visible;
|
||||||
|
}
|
||||||
|
|
||||||
|
to {
|
||||||
|
transform: translate3d(0, 0, 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.slideInLeft {
|
||||||
|
-webkit-animation: slideInLeft 1s;
|
||||||
|
animation: slideInLeft 1s;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*-- slideInRight -- */
|
||||||
|
|
||||||
|
@keyframes slideInRight {
|
||||||
|
from {
|
||||||
|
transform: translate3d(100%, 0, 0);
|
||||||
|
visibility: visible;
|
||||||
|
}
|
||||||
|
|
||||||
|
to {
|
||||||
|
transform: translate3d(0, 0, 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.slideInRight {
|
||||||
|
-webkit-animation: slideInRight 1s;
|
||||||
|
animation: slideInRight 1s;
|
||||||
|
}
|
||||||
|
|
||||||
/* Animated Background (Matrix) */
|
/* Animated Background (Matrix) */
|
||||||
@-webkit-keyframes anim {
|
@-webkit-keyframes anim {
|
||||||
0% {
|
0% {
|
||||||
@@ -628,7 +666,6 @@ https://github.com/daneden/animate.css*/
|
|||||||
animation-duration: 5s;
|
animation-duration: 5s;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Transitions */
|
/* Transitions */
|
||||||
|
|
||||||
header,
|
header,
|
||||||
|
Reference in New Issue
Block a user