The Book of CSS3 by Peter Gasston

The Book of CSS3 by Peter Gasston

Author:Peter Gasston
Language: eng
Format: mobi, epub
Tags: COMPUTERS / Web / Web Programming
ISBN: 9781593273637
Publisher: No Starch Press
Published: 2011-05-01T20:00:00+00:00


translate

The next function we’ll look at is translate, which moves the element from its default position. Three functions are actually involved: tranlateX, translateY, and translate:

E {

transform: translateX(value);

transform: translateY(value);

}

E { transform: translate(translateX,translateY); }

The first two functions, translateX and translateY, move the element along an axis—if you need a refresher, refer to the explanation of axes in Chapter 6—for the length that you specify. You can use any length units or percentage values here, so, for example, you could have:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.