barbajs

JavaScript file doesn't load after page transition with barba.js

元气小坏坏 提交于 2019-12-08 05:02:49
问题 I have a website with a link. When I click the link I want a smooth page transition to the next page using jQuery. I got the the HTML elements inside the barba DOM to fade out. But when the next page tries to load, all BUT the JavaScript loads. This is my code: (index.html) <div id="barba-wrapper" class="wrapper"> <div class="barba-container"> <div class="container"> <span class="text1">Hey There!</span> <span class="text2">This is my portfolio!</span> <a id="homeLink" href="./home.html"

JavaScript file doesn't load after page transition with barba.js

痞子三分冷 提交于 2019-12-06 21:00:30
I have a website with a link. When I click the link I want a smooth page transition to the next page using jQuery. I got the the HTML elements inside the barba DOM to fade out. But when the next page tries to load, all BUT the JavaScript loads. This is my code: (index.html) <div id="barba-wrapper" class="wrapper"> <div class="barba-container"> <div class="container"> <span class="text1">Hey There!</span> <span class="text2">This is my portfolio!</span> <a id="homeLink" href="./home.html">Click me to continue</a> </div> </div> </div> <script> $('document').ready(function(){ var transEffect =