Skip to content

Commit

Permalink
Explicitly specify opacity:1 for cross-browser support
Browse files Browse the repository at this point in the history
  • Loading branch information
mattdanna committed Oct 22, 2015
1 parent 23a9373 commit 337ba3f
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 20 deletions.
11 changes: 6 additions & 5 deletions _sliding-entrances/_slideInDown.scss
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
@include keyframes(slideInDown) {
0% {
opacity: 0;
@include transform(translateY(-2000px));
0% {
opacity: 0;
@include transform(translateY(-2000px));
}
100% {
@include transform(translateY(0));
100% {
opacity: 1;
@include transform(translateY(0));
}
}

Expand Down
11 changes: 6 additions & 5 deletions _sliding-entrances/_slideInLeft.scss
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
@include keyframes(slideInLeft) {
0% {
opacity: 0;
@include transform(translateX(-2000px));
0% {
opacity: 0;
@include transform(translateX(-2000px));
}
100% {
@include transform(translateX(0));
100% {
opacity: 1;
@include transform(translateX(0));
}
}

Expand Down
11 changes: 6 additions & 5 deletions _sliding-entrances/_slideInRight.scss
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
@include keyframes(slideInRight) {
0% {
opacity: 0;
@include transform(translateX(2000px));
0% {
opacity: 0;
@include transform(translateX(2000px));
}
100% {
@include transform(translateX(0));
100% {
opacity: 1;
@include transform(translateX(0));
}
}

Expand Down
11 changes: 6 additions & 5 deletions _sliding-entrances/_slideInUp.scss
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
@include keyframes(slideInUp) {
0% {
opacity: 0;
@include transform(translateY(2000px));
0% {
opacity: 0;
@include transform(translateY(2000px));
}
100% {
@include transform(translateY(0));
100% {
opacity: 1;
@include transform(translateY(0));
}
}

Expand Down

0 comments on commit 337ba3f

Please sign in to comment.