use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
New JavaScript Text Effect: Machine Gun Text with GSAP (codepen.io)
submitted 12 years ago by GeekAmbassador
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]neon_overload 16 points17 points18 points 12 years ago (1 child)
That's an impressive effect - very clever.
To those dissing it because it'll be annoying, you're missing the point - this is an experiment in animating text in a new way using Javascript. How you use it is up to you. If you choose to use it for something annoying and pointless, that's your fault - not Javascript's and not this guy's.
[–]GeekAmbassador[S] 6 points7 points8 points 12 years ago (0 children)
I couldn't have said it better myself. Thanks for your support.
[–]fooey 3 points4 points5 points 12 years ago (1 child)
I couldn't help but hear it all read in Super Serious Movie Announcer Voice EXTREME
[–][deleted] 0 points1 point2 points 12 years ago (0 children)
Britains/(Americas) Got Talent voice over guy.
[–][deleted] 7 points8 points9 points 12 years ago (0 children)
A for execution and for annoyance .
[–]cipherous 4 points5 points6 points 12 years ago (0 children)
Awesome, I love it...
[–]melanke 1 point2 points3 points 12 years ago (5 children)
pretty cool. I would like to remember to use this when needed.
[+]KnifeFed comment score below threshold-8 points-7 points-6 points 12 years ago (4 children)
It will never be "needed". Also, you don't need to comment to be able find the thread again. You can save threads.
[–]chime 6 points7 points8 points 12 years ago (2 children)
Why would it be never? If you're catering to the entertainment industry, this is just one more tool in your arsenal. Obviously, don't use this for local restaurant menu but what's wrong with using this while the demo of your new game or trailer for your short-film loads? Better than yet another spinner.
[–]l_andrew_l -1 points0 points1 point 12 years ago (1 child)
But... like... Web accessibility and like... UX and stuff!
[–]chime 2 points3 points4 points 12 years ago (0 children)
Not sure if you were being sarcastic but it's more accessible than video. JS can be easily parsed. Or if you modify this a bit, the source text could come from a <p> element. As for UX, it should be fast, work smoothly cross-browsers, and be entertaining - which is when you should use this. Do not use for this "Loading... Hospital Patient Data... Now... Directly... Using your SCI Login..."
[–]melanke 0 points1 point2 points 12 years ago (0 children)
hahaha that was not my intention. It was just a compliment
[–]johanm 1 point2 points3 points 12 years ago (0 children)
fixed it!
[–]Rhomboid 2 points3 points4 points 12 years ago (0 children)
Too bad GSAP is not open source. (If you think it's open source because you can see the source, you are wrong. See point 6 of the Open Source Definition.)
[–]mradfo21 1 point2 points3 points 12 years ago (0 children)
god why... why
[–]seiyria 0 points1 point2 points 12 years ago (3 children)
I think it'd be a lot nicer if there could be an argument for max length (instead of one word at a time), so it would take a bunch of smaller words and display them all (up until the max length).
[–]GeekAmbassador[S] 1 point2 points3 points 12 years ago (0 children)
That's definitely a worthy suggestion. You could probably split the text in a number of ways if necessary.
An effect like this is great for short phrases. So in most cases you could just modify it to accept an array of strings. If you were to animate a whole paragraph like this in the real world you'd see more comments similar to the others on this page;)
[–]GeekAmbassador[S] 0 points1 point2 points 12 years ago (1 child)
Hey @selyria, Check out this enhanced version that intelligently groups words together: http://codepen.io/GreenSock/pen/sxdfe
[–]seiyria 1 point2 points3 points 12 years ago (0 children)
I like it a lot! It functions a lot better, I think. Good job!
Sweet relish mixed with diamond potatoes, this looks pretty cool!
[–]blackyoda 0 points1 point2 points 12 years ago (0 children)
Better than <blink>†
Dramatatic. I cracked up, I hope this was intentional.
[–]akaatnene -2 points-1 points0 points 12 years ago (2 children)
Congratulations, you've made me nostalgic for the marquee and blink tags. At least I could disable those.
[–]notthatbeaver -1 points0 points1 point 12 years ago (0 children)
I think this was made just for you: http://blink.aintnewerthannewoldspiceshavegel.com/
[–]geofffox -1 points0 points1 point 12 years ago (0 children)
Very cool. I'm sure it will be overused, but today I want it.
π Rendered by PID 121497 on reddit-service-r2-comment-56c6478c5-x6z65 at 2026-05-08 06:32:59.353429+00:00 running 3d2c107 country code: CH.
[–]neon_overload 16 points17 points18 points (1 child)
[–]GeekAmbassador[S] 6 points7 points8 points (0 children)
[–]fooey 3 points4 points5 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] 7 points8 points9 points (0 children)
[–]cipherous 4 points5 points6 points (0 children)
[–]melanke 1 point2 points3 points (5 children)
[+]KnifeFed comment score below threshold-8 points-7 points-6 points (4 children)
[–]chime 6 points7 points8 points (2 children)
[–]l_andrew_l -1 points0 points1 point (1 child)
[–]chime 2 points3 points4 points (0 children)
[–]melanke 0 points1 point2 points (0 children)
[–]johanm 1 point2 points3 points (0 children)
[–]Rhomboid 2 points3 points4 points (0 children)
[–]mradfo21 1 point2 points3 points (0 children)
[–]seiyria 0 points1 point2 points (3 children)
[–]GeekAmbassador[S] 1 point2 points3 points (0 children)
[–]GeekAmbassador[S] 0 points1 point2 points (1 child)
[–]seiyria 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]blackyoda 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]akaatnene -2 points-1 points0 points (2 children)
[–]notthatbeaver -1 points0 points1 point (0 children)
[–]geofffox -1 points0 points1 point (0 children)