Inspiration for Letter Effects

A set of inspirational letter animations for display typography effects powered by anime.js.

From our sponsor: Looking for an intuitive whiteboard style project management tool? Give Shortcut a try for free.

Today we’d like to share some inspiration for letter effects with you. We wanted to explore some simple, creative animations for display typography and large headlines using anime.js. These kind of animations can really enhance a certain message; combining these effects with a fitting font and playing with transforms opens up a huge range of possibilities. We hope this set inspires you and gives you some ideas on how to use an animation library like anime.js for this purpose.

Attention: We’re using 3D Transforms, so modern browsers only!


For the effects we created a little plugin that can be used as follows:

// Initialize
var txt = new TextFx(this.el.querySelector('.title'));

// Show letters: 
//[effect] [,callback]);
// If nothing is passed, then there's no animation.
// ´effect´ can either be one of the predefined effects: ['fx1',...,'fx17'] or 
// an object literal representing both, in and out animations (anime.js based).

// Example:
effect = {
	in: {
		duration: 500,
		delay: function(el, index) { 
			return 250+index*40; 
		easing: 'easeOutExpo',
		opacity: 1,
		translateY: ['50%','0%']
	out: {
		duration: 500,
		delay: function(el, index) { 
			return index*40; 
		easing: 'easeOutExpo',
		opacity: 0,
		translateY: '-50%'
// ´callback´ is the callback function, after all the letters finished the animation.

// Hide letters: 
// txt.hide([effect] [,callback]); (same logic of show)

For more info on how to use anime.js, check out the documentation.

The essential stylesheet for the effect itself is lettereffect.css. Note that we’ve created a little slideshow script to navigate through the different words to showcase the effects.

Browser Support:
  • ChromeSupported
  • FirefoxSupported
  • Internet ExplorerSupported from version 11+
  • SafariSupported
  • OperaSupported

References and Credits

Tagged with:

Mary Lou

ML is a freelance web designer and developer with a passion for interaction design. She studied Cognitive Science and Computational Logic and has a weakness for the smell of freshly ground peppercorns.

Stay up to date with the latest web design and development news and relevant updates from Codrops.

Feedback 27

Comments are closed.
  1. Hello, Thank you very much for the post.
    I have just a question : how can we trigger the animation to an anchor (not the next / prev button) from the page

    Ex : anchor1 | anchor2| anchor3