TypeError: Move must be initialized with element or selector at new Move (move.min.js:1)
move.js无法使用
<script src="js/move.js"></script> <script src="js/move.min.js"></script>
afterLoad: function(origin, destination, direction){ //section 2 if(destination.index == 1){ move('.section1 p').scale(1.5).end(); document.querySelector('#section2').querySelector('img').style.left = 0 + 'px'; document.querySelector('#section2').querySelector('p').style.opacity = 1; } //back to original state else if(origin && origin.index == 1){ // document.querySelector('#section2').querySelector('img').style.left = 130 + '%'; // document.querySelector('#section2').querySelector('p').style.opacity = 0; } }