Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Author: pahapoika91
- // Name: Text trolling
- // Description: Increases and decreases text size
- <script type="text/javascript">
- window.onload = function() {
- var size = 1.0
- var up = true;
- setInterval(function() {
- document.body.style.fontSize = size + "em";
- if (up)
- size += 1;
- else
- size -= 1;
- if (size == 10)
- up = false;
- if (size == 0)
- up = true;
- }, 100);
- }
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement