How to use the velocity-animate/velocity.js function in velocity-animate

To help you get started, we’ve selected a few velocity-animate examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github eidonlon / imitate-beautiful-thing / src / pages / pictoral.vue View on Github external
leave: function (el, done) {
		      var self = this;
		      var top = '';
		      var delay = el.dataset.index * 10;
		      var width = this.setWidth(el.dataset.index);

		      if(el.dataset.index < this.first){
		      	top = "99%";
		      }else{
		      	if(el.dataset.index >= (this.first + 4)){
			      	top = 15 + "%";
			      }else{
			      	top = (4 - (el.dataset.index - this.first))*10 + "%";
			      }
		      }
		      	Velocity(
		          el,
		          { 
		          	width:width,
		          	translateY:top
		          },{
		          	mobileHA:true,
		          	easing: [ 0.4, 0.01, 0.165, 0.99 ],
		          	complete: function(){
			          	if(el.dataset.index == (self.dataList.length - 1)){
			          		self.stop = false;
			          	}
		      	    } 
		          }
		        );
		    },
			bindSlide: function(){