Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update jquery.flexslider.js to allow CSS3 animations on the caption
To allow CSS3 animations on the caption every time a slide is changed, I removed the caption paragraph from the DOM and reattached in. This allows users to add CSS3 animations such as slide ins directly to the caption and it ensures it will work with every slide change.
- Loading branch information
939decf
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you so much:)
939decf
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was much needed, well for me it was ;)
939decf
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a problem when you use more than one slide on a page. It will just keep creating flexi-caption div and resulting slowing the computer. It seems it runs into a unlimited loop and makes you computer crush.
939decf
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of doing this, you can just apply the animation in your css like this.
.flex-active-slide .flex-caption {
max-width: 320px;
position: relative;
-webkit-animation: slideIn;
-moz-animation: slideIn;
-o-animation: slideIn;
animation: slideIn;
-webkit-animation-duration: 2s;
-moz-animation-duration: 2s;
-o-animation-duration: 2s;
animation-duration: 2s;
}