Skip to content

Commit

Permalink
switch to fixed unit for fragment animations to make them more consis…
Browse files Browse the repository at this point in the history
…tent
  • Loading branch information
hakimel committed Dec 19, 2019
1 parent 201e831 commit 6f9b10b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions css/reveal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -102,31 +102,31 @@ body {
}

.reveal .slides section .fragment.fade-up {
transform: translate(0, 20%);
transform: translate(0, 40px);

&.visible {
transform: translate(0, 0);
}
}

.reveal .slides section .fragment.fade-down {
transform: translate(0, -20%);
transform: translate(0, -40px);

&.visible {
transform: translate(0, 0);
}
}

.reveal .slides section .fragment.fade-right {
transform: translate(-20%, 0);
transform: translate(-40px, 0);

&.visible {
transform: translate(0, 0);
}
}

.reveal .slides section .fragment.fade-left {
transform: translate(20%, 0);
transform: translate(40px, 0);

&.visible {
transform: translate(0, 0);
Expand Down

0 comments on commit 6f9b10b

Please sign in to comment.