����JFIF��x�x����'
Server IP : 66.29.137.217 / Your IP : 18.116.10.73 Web Server : LiteSpeed System : Linux premium294.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64 User : gltevjme ( 1095) PHP Version : 7.0.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/gltevjme/ideyshare.name.ng/app/assets/admin/vendors/transitionize/examples/ |
Upload File : |
/** * Transitionize example. * * Shows how to change dynamically the transitions of an element. * * In this case, the `elem` background color and left properties are given different transition duration, * according to it's current position. If the circle is in it's initial position, it goes right and * changes background color faster. If it's already been moved - gets back left and changes background * color slower. * * In order for this to work, with Browserify(http://browserify.org/) already installed, execute the following command: * * browserify examples/browserify.js -o examples/bundle.js * */ var transitionize = require('../transitionize'); window.onload = function() { var elem = document.querySelector('.js-elem') , prop = {}; elem.addEventListener('click', function() { var position = parseInt(elem.style.left) || 0; if (position == 0) { this.style.left = this.parentNode.offsetWidth - this.offsetWidth + 'px'; this.style.backgroundColor = '#53e7d0'; prop = { 'background-color': '0.3s' , 'left': '0.3s' }; } else { this.style.left = 0; this.style.backgroundColor = '#febf04'; prop = { 'background-color': '1s' , 'left': '1s' }; } transitionize(elem, prop); }); };