Book Image

LESS WEB DEVELOPMENT COOKBOOK

Book Image

LESS WEB DEVELOPMENT COOKBOOK

Overview of this book

Table of Contents (19 chapters)
Less Web Development Cookbook
Credits
Foreword
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Creating animations with More.less


More.less is a mixin library that can help you to create cross-browser CSS animations. More.less includes all animate.css animations, see the Creating animations with animations.css recipe of this chapter for more information about animate.css.

Getting ready

Download and unzip the More.less mixin library into the less subdirectory of your working directory. You can download the ZIP file at https://github.com/weinitz/More.less/archive/master.zip. In this recipe you will build some CSS animation. You should watch these animations in your browser. The Less code in this recipe can be compiled into client-side CSS code, leveraging the less.js compiler. In Chapter 1, Getting to Grips with the Basics of Less, of this book, you can read how to download and install this compiler.

How to do it…

  1. The bundled animations of More.less are saved as more/animation/{name}/(in|out)/name.less. Create a new file more/animation/orbit.less, and write down the following Less code...