A Pen by Secret Sam on CodePen.
Created
July 22, 2014 20:28
-
-
Save rivadeveira/5e5aa0e9251c081c8143 to your computer and use it in GitHub Desktop.
A Pen by Secret Sam.
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
<input id="zoomer" type="range" min=50 max=150 value="50"/> | |
<figure class="container"> | |
<img id="map" src="https://www.npmjs.org/static/img/npm.png" alt="" /> | |
</figure> |
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
zoomer.addEventListener('input',function(){ | |
map.style.webkitTransform = 'scale('+zoomer.value/50+')' | |
}) |
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
input[type=range]{ | |
-webkit-appearance : slider-vertical; | |
-webkit-transform : rotate(180deg) | |
} | |
.container{ | |
overflow:hidden; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment