Skip to content

Commit

Permalink
Merge pull request #17 from csskevin/master
Browse files Browse the repository at this point in the history
Applying animsition on header and aside elements
  • Loading branch information
puikinsh authored Jul 2, 2020
2 parents d4e566f + 456776c commit b5e3b0e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -1255,12 +1255,15 @@
(function ($) {
// USE STRICT
"use strict";
var navbars = ['header', 'aside'];
var hrefSelector = 'a:not([target="_blank"]):not([href^="#"]):not([class^="chosen-single"])';
var linkElement = navbars.map(element => element + ' ' + hrefSelector).join(', ');
$(".animsition").animsition({
inClass: 'fade-in',
outClass: 'fade-out',
inDuration: 900,
outDuration: 900,
linkElement: 'a:not([target="_blank"]):not([href^="#"]):not([class^="chosen-single"])',
linkElement: linkElement,
loading: true,
loadingParentElement: 'html',
loadingClass: 'page-loader',
Expand Down

0 comments on commit b5e3b0e

Please sign in to comment.