Skip to content

Commit

Permalink
v2.0.8
Browse files Browse the repository at this point in the history
animation directions fixed
  • Loading branch information
thatisuday committed Oct 9, 2016
1 parent 12d6c02 commit 018b59d
Show file tree
Hide file tree
Showing 8 changed files with 44 additions and 43 deletions.
64 changes: 32 additions & 32 deletions dist/ng-image-gallery.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
transform: scale(0, 0) translateX(0px); }
50% {
opacity: 0.5;
-webkit-transform: scale(0.5, 0.5) translateX(-100%);
transform: scale(0.5, 0.5) translateX(-100%); }
-webkit-transform: scale(0.5, 0.5) translateX(100%);
transform: scale(0.5, 0.5) translateX(100%); }
100% {
opacity: 1;
-webkit-transform: scale(1, 1) translateX(0px);
Expand All @@ -33,8 +33,8 @@
transform: scale(0, 0) translateX(0px); }
50% {
opacity: 0.5;
-webkit-transform: scale(0.5, 0.5) translateX(-100%);
transform: scale(0.5, 0.5) translateX(-100%); }
-webkit-transform: scale(0.5, 0.5) translateX(100%);
transform: scale(0.5, 0.5) translateX(100%); }
100% {
opacity: 1;
-webkit-transform: scale(1, 1) translateX(0px);
Expand All @@ -43,8 +43,8 @@
@-webkit-keyframes revolve-out-forward {
50% {
opacity: 0.5;
-webkit-transform: scale(0.5, 0.5) translateX(100%);
transform: scale(0.5, 0.5) translateX(100%); }
-webkit-transform: scale(0.5, 0.5) translateX(-100%);
transform: scale(0.5, 0.5) translateX(-100%); }
100% {
opacity: 0;
-webkit-transform: scale(0, 0) translateX(0px);
Expand All @@ -53,8 +53,8 @@
@keyframes revolve-out-forward {
50% {
opacity: 0.5;
-webkit-transform: scale(0.5, 0.5) translateX(100%);
transform: scale(0.5, 0.5) translateX(100%); }
-webkit-transform: scale(0.5, 0.5) translateX(-100%);
transform: scale(0.5, 0.5) translateX(-100%); }
100% {
opacity: 0;
-webkit-transform: scale(0, 0) translateX(0px);
Expand All @@ -67,8 +67,8 @@
transform: scale(0, 0) translateX(0px); }
50% {
opacity: 0.5;
-webkit-transform: scale(0.5, 0.5) translateX(100%);
transform: scale(0.5, 0.5) translateX(100%); }
-webkit-transform: scale(0.5, 0.5) translateX(-100%);
transform: scale(0.5, 0.5) translateX(-100%); }
100% {
opacity: 1;
-webkit-transform: scale(1, 1) translateX(0px);
Expand All @@ -81,8 +81,8 @@
transform: scale(0, 0) translateX(0px); }
50% {
opacity: 0.5;
-webkit-transform: scale(0.5, 0.5) translateX(100%);
transform: scale(0.5, 0.5) translateX(100%); }
-webkit-transform: scale(0.5, 0.5) translateX(-100%);
transform: scale(0.5, 0.5) translateX(-100%); }
100% {
opacity: 1;
-webkit-transform: scale(1, 1) translateX(0px);
Expand All @@ -91,8 +91,8 @@
@-webkit-keyframes revolve-out-backward {
50% {
opacity: 0.5;
-webkit-transform: scale(0.5, 0.5) translateX(-100%);
transform: scale(0.5, 0.5) translateX(-100%); }
-webkit-transform: scale(0.5, 0.5) translateX(100%);
transform: scale(0.5, 0.5) translateX(100%); }
100% {
opacity: 0;
-webkit-transform: scale(0, 0) translateX(0px);
Expand All @@ -101,8 +101,8 @@
@keyframes revolve-out-backward {
50% {
opacity: 0.5;
-webkit-transform: scale(0.5, 0.5) translateX(-100%);
transform: scale(0.5, 0.5) translateX(-100%); }
-webkit-transform: scale(0.5, 0.5) translateX(100%);
transform: scale(0.5, 0.5) translateX(100%); }
100% {
opacity: 0;
-webkit-transform: scale(0, 0) translateX(0px);
Expand Down Expand Up @@ -317,87 +317,87 @@
opacity: 0;
-webkit-transform: scale(0);
transform: scale(0); }
.ng-image-gallery .ng-image-gallery-modal .ng-image-gallery-content .galleria .galleria-images.img-anim-slide.img-move-dir-forward .galleria-image.ng-enter {
.ng-image-gallery .ng-image-gallery-modal .ng-image-gallery-content .galleria .galleria-images.img-anim-slide.img-move-dir-backward .galleria-image.ng-enter {
-webkit-transition: opacity 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;
transition: opacity 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;
transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;
-webkit-transform: translateX(-100%);
transform: translateX(-100%);
opacity: 0; }
.ng-image-gallery .ng-image-gallery-modal .ng-image-gallery-content .galleria .galleria-images.img-anim-slide.img-move-dir-forward .galleria-image.ng-enter-active {
.ng-image-gallery .ng-image-gallery-modal .ng-image-gallery-content .galleria .galleria-images.img-anim-slide.img-move-dir-backward .galleria-image.ng-enter-active {
-webkit-transform: translateX(0px);
transform: translateX(0px);
opacity: 1; }
.ng-image-gallery .ng-image-gallery-modal .ng-image-gallery-content .galleria .galleria-images.img-anim-slide.img-move-dir-forward .galleria-image.ng-leave {
.ng-image-gallery .ng-image-gallery-modal .ng-image-gallery-content .galleria .galleria-images.img-anim-slide.img-move-dir-backward .galleria-image.ng-leave {
-webkit-transition: opacity 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;
transition: opacity 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;
transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out; }
.ng-image-gallery .ng-image-gallery-modal .ng-image-gallery-content .galleria .galleria-images.img-anim-slide.img-move-dir-forward .galleria-image.ng-leave-active {
.ng-image-gallery .ng-image-gallery-modal .ng-image-gallery-content .galleria .galleria-images.img-anim-slide.img-move-dir-backward .galleria-image.ng-leave-active {
opacity: 0;
-webkit-transform: translateX(100%);
transform: translateX(100%); }
.ng-image-gallery .ng-image-gallery-modal .ng-image-gallery-content .galleria .galleria-images.img-anim-slide.img-move-dir-backward .galleria-image.ng-enter {
.ng-image-gallery .ng-image-gallery-modal .ng-image-gallery-content .galleria .galleria-images.img-anim-slide.img-move-dir-forward .galleria-image.ng-enter {
-webkit-transition: opacity 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;
transition: opacity 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;
transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;
-webkit-transform: translateX(100%);
transform: translateX(100%);
opacity: 0; }
.ng-image-gallery .ng-image-gallery-modal .ng-image-gallery-content .galleria .galleria-images.img-anim-slide.img-move-dir-backward .galleria-image.ng-enter-active {
.ng-image-gallery .ng-image-gallery-modal .ng-image-gallery-content .galleria .galleria-images.img-anim-slide.img-move-dir-forward .galleria-image.ng-enter-active {
-webkit-transform: translateX(0px);
transform: translateX(0px);
opacity: 1; }
.ng-image-gallery .ng-image-gallery-modal .ng-image-gallery-content .galleria .galleria-images.img-anim-slide.img-move-dir-backward .galleria-image.ng-leave {
.ng-image-gallery .ng-image-gallery-modal .ng-image-gallery-content .galleria .galleria-images.img-anim-slide.img-move-dir-forward .galleria-image.ng-leave {
-webkit-transition: opacity 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;
transition: opacity 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;
transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out; }
.ng-image-gallery .ng-image-gallery-modal .ng-image-gallery-content .galleria .galleria-images.img-anim-slide.img-move-dir-backward .galleria-image.ng-leave-active {
.ng-image-gallery .ng-image-gallery-modal .ng-image-gallery-content .galleria .galleria-images.img-anim-slide.img-move-dir-forward .galleria-image.ng-leave-active {
opacity: 0;
-webkit-transform: translateX(-100%);
transform: translateX(-100%); }
.ng-image-gallery .ng-image-gallery-modal .ng-image-gallery-content .galleria .galleria-images.img-anim-pop.img-move-dir-forward .galleria-image.ng-enter {
.ng-image-gallery .ng-image-gallery-modal .ng-image-gallery-content .galleria .galleria-images.img-anim-pop.img-move-dir-backward .galleria-image.ng-enter {
-webkit-transition: opacity 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;
transition: opacity 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;
transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;
-webkit-transform: translateX(-100%) scale(0, 0);
transform: translateX(-100%) scale(0, 0);
opacity: 0; }
.ng-image-gallery .ng-image-gallery-modal .ng-image-gallery-content .galleria .galleria-images.img-anim-pop.img-move-dir-forward .galleria-image.ng-enter-active {
.ng-image-gallery .ng-image-gallery-modal .ng-image-gallery-content .galleria .galleria-images.img-anim-pop.img-move-dir-backward .galleria-image.ng-enter-active {
-webkit-transform: translateX(0px) scale(1, 1);
transform: translateX(0px) scale(1, 1);
opacity: 1; }
.ng-image-gallery .ng-image-gallery-modal .ng-image-gallery-content .galleria .galleria-images.img-anim-pop.img-move-dir-forward .galleria-image.ng-leave {
.ng-image-gallery .ng-image-gallery-modal .ng-image-gallery-content .galleria .galleria-images.img-anim-pop.img-move-dir-backward .galleria-image.ng-leave {
-webkit-transition: opacity 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;
transition: opacity 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;
transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out; }
.ng-image-gallery .ng-image-gallery-modal .ng-image-gallery-content .galleria .galleria-images.img-anim-pop.img-move-dir-forward .galleria-image.ng-leave-active {
.ng-image-gallery .ng-image-gallery-modal .ng-image-gallery-content .galleria .galleria-images.img-anim-pop.img-move-dir-backward .galleria-image.ng-leave-active {
opacity: 0;
-webkit-transform: translateX(100%) scale(0, 0);
transform: translateX(100%) scale(0, 0); }
.ng-image-gallery .ng-image-gallery-modal .ng-image-gallery-content .galleria .galleria-images.img-anim-pop.img-move-dir-backward .galleria-image.ng-enter {
.ng-image-gallery .ng-image-gallery-modal .ng-image-gallery-content .galleria .galleria-images.img-anim-pop.img-move-dir-forward .galleria-image.ng-enter {
-webkit-transition: opacity 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;
transition: opacity 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;
transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;
-webkit-transform: translateX(100%) scale(0, 0);
transform: translateX(100%) scale(0, 0);
opacity: 0; }
.ng-image-gallery .ng-image-gallery-modal .ng-image-gallery-content .galleria .galleria-images.img-anim-pop.img-move-dir-backward .galleria-image.ng-enter-active {
.ng-image-gallery .ng-image-gallery-modal .ng-image-gallery-content .galleria .galleria-images.img-anim-pop.img-move-dir-forward .galleria-image.ng-enter-active {
-webkit-transform: translateX(0px) scale(1, 1);
transform: translateX(0px) scale(1, 1);
opacity: 1; }
.ng-image-gallery .ng-image-gallery-modal .ng-image-gallery-content .galleria .galleria-images.img-anim-pop.img-move-dir-backward .galleria-image.ng-leave {
.ng-image-gallery .ng-image-gallery-modal .ng-image-gallery-content .galleria .galleria-images.img-anim-pop.img-move-dir-forward .galleria-image.ng-leave {
-webkit-transition: opacity 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;
transition: opacity 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;
transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out; }
.ng-image-gallery .ng-image-gallery-modal .ng-image-gallery-content .galleria .galleria-images.img-anim-pop.img-move-dir-backward .galleria-image.ng-leave-active {
.ng-image-gallery .ng-image-gallery-modal .ng-image-gallery-content .galleria .galleria-images.img-anim-pop.img-move-dir-forward .galleria-image.ng-leave-active {
opacity: 0;
-webkit-transform: translateX(-100%) scale(0, 0);
transform: translateX(-100%) scale(0, 0); }
Expand Down
2 changes: 1 addition & 1 deletion dist/ng-image-gallery.min.css

Large diffs are not rendered by default.

Binary file modified dist/ng-image-gallery.min.css.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion dist/ng-image-gallery.min.css.map

Large diffs are not rendered by default.

Binary file modified dist/ng-image-gallery.min.css.map.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ng-image-gallery",
"version": "v2.0.7",
"version": "v2.0.8",
"description": "Probably the best angular inline and modal image gallery combined...",
"main": "dist/ng-image-gallery.js",
"directories": {
Expand Down
9 changes: 5 additions & 4 deletions src/sass/animations.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

/*********************************************/


@keyframes revolve-in-forward{
0%{
opacity: 0;
Expand All @@ -24,7 +25,7 @@

50%{
opacity: 0.5;
transform: scale(0.5,0.5) translateX(-100%);
transform: scale(0.5,0.5) translateX(100%);
}

100%{
Expand All @@ -35,7 +36,7 @@
@keyframes revolve-out-forward{
50%{
opacity: 0.5;
transform: scale(0.5,0.5) translateX(100%);
transform: scale(0.5,0.5) translateX(-100%);
}

100%{
Expand All @@ -52,7 +53,7 @@

50%{
opacity: 0.5;
transform: scale(0.5,0.5) translateX(100%);
transform: scale(0.5,0.5) translateX(-100%);
}

100%{
Expand All @@ -63,7 +64,7 @@
@keyframes revolve-out-backward{
50%{
opacity: 0.5;
transform: scale(0.5,0.5) translateX(-100%);
transform: scale(0.5,0.5) translateX(100%);
}

100%{
Expand Down
8 changes: 4 additions & 4 deletions src/sass/directive.scss
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@

// image slide animation
&.img-anim-slide{
&.img-move-dir-forward{
&.img-move-dir-backward{
.galleria-image{
&.ng-enter{
transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
Expand All @@ -285,7 +285,7 @@
}
}
}
&.img-move-dir-backward{
&.img-move-dir-forward{
.galleria-image{
&.ng-enter{
transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
Expand All @@ -309,7 +309,7 @@

// image pop animation
&.img-anim-pop{
&.img-move-dir-forward{
&.img-move-dir-backward{
.galleria-image{
&.ng-enter{
transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
Expand All @@ -329,7 +329,7 @@
}
}
}
&.img-move-dir-backward{
&.img-move-dir-forward{
.galleria-image{
&.ng-enter{
transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
Expand Down

0 comments on commit 018b59d

Please sign in to comment.