appearI’ve created another Mootools class! This one animates the appearance of images or elements. Do I need to say more? Words are not enough, check out the demo!

View example Download file

I even added a onComplete function which you can customize yourself!

The html

  • Test
  • Test
  • Test
  • Test
  • Test
  • Test
  • Test
  • Test
  • Test

The css

#appear li {
	float: left;
	list-style-type: none;
	display: block;
	width: 150px;
	height: 150px;
	margin: 10px;
	}

#appear img {
	border: none;
	}

The javascript

window.addEvent('domready', function() {

	var ap = new cvElementAppear('appear',{
		elements: 'img',
		endwidth: 150,
		endheight: 150,
		duration: 1000,
		transition: Fx.Transitions.Sine.easeIn,
		onComplete: function(){
			alert('Finish!');
		}
	});
});

Related Posts

Leave a Comment

Get your own Gravatar!
Your email will never be published!

Notify me of followup comments via e-mail

Top of Page