Skip to content

Commit

Permalink
Add new js file for front banner animations
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorge Ram committed Dec 16, 2015
1 parent 7be4c94 commit b9a3008
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
3 changes: 2 additions & 1 deletion themes/custom/d8_materialize/d8_materialize.libraries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ global-styles:
js/bin/materialize.js: { scope: Footer }
js/vendor/moment.js: { scope: Footer }
js/d8_materialize/custom.js: { scope: Footer }
js/d8_materialize/jeyram.js: { scope: Footer }
dependencies:
- core/jquery.once
- core/jquery.once
11 changes: 11 additions & 0 deletions themes/custom/d8_materialize/js/d8_materialize/jeyram.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
(function ($) {
'use strict';

$(document).ready(function() {
$('.fighter-camp img').delay(200).fadeIn('slow', function() {
$('.date-camp img').each(function(i) {
$(this).delay(100*i).fadeTo(300,1);
});
});
});
}(jQuery));

0 comments on commit b9a3008

Please sign in to comment.