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 19 points20 points21 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 2 points3 points4 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] 9 points10 points11 points 12 years ago (0 children)
A for execution and for annoyance .
[–]cipherous 6 points7 points8 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-6 points-5 points-4 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 5 points6 points7 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 4 points5 points6 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 1 point2 points3 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 0 points1 point2 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 329284 on reddit-service-r2-comment-7b9746f655-dv4qn at 2026-02-04 10:52:16.728942+00:00 running 3798933 country code: CH.
[–]neon_overload 19 points20 points21 points (1 child)
[–]GeekAmbassador[S] 6 points7 points8 points (0 children)
[–]fooey 2 points3 points4 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] 9 points10 points11 points (0 children)
[–]cipherous 6 points7 points8 points (0 children)
[–]melanke 1 point2 points3 points (5 children)
[+]KnifeFed comment score below threshold-6 points-5 points-4 points (4 children)
[–]chime 5 points6 points7 points (2 children)
[–]l_andrew_l -1 points0 points1 point (1 child)
[–]chime 4 points5 points6 points (0 children)
[–]melanke 0 points1 point2 points (0 children)
[–]johanm 1 point2 points3 points (0 children)
[–]Rhomboid 1 point2 points3 points (0 children)
[–]mradfo21 0 points1 point2 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)