Created
July 2, 2012 08:39
-
-
Save CIAvash/3032001 to your computer and use it in GitHub Desktop.
CSS3 transform overflow
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* CSS3 transform overflow | |
*/ | |
.box { | |
width: 130px; | |
overflow: scroll; | |
} | |
.transform { | |
transform: scale(6); | |
display: inline-block; | |
} | |
.align-right { | |
text-align: right; | |
} | |
.transform2 { | |
transform: scale(25); | |
display: inline-block; | |
} | |
.transform3 { | |
transform-origin: 0 0; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="box"> | |
<p>1</p> | |
<p class="transform">2</p> | |
<p>3</p> | |
<p>4</p> | |
</div> | |
<div class="box align-right"> | |
<p>1</p> | |
<p class="transform">2</p> | |
<p>3</p> | |
<p>4</p> | |
</div> | |
<div class="box align-right"> | |
<p>1</p> | |
<p class="transform2">2</p> | |
<p>3</p> | |
<p>4</p> | |
</div> | |
<div class="box"> | |
<p>1</p> | |
<p class="transform2 transform3">2</p> | |
<p>3</p> | |
<p>4</p> | |
</div> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"view":"separate","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment