Jump to content
GreenSock

bbnnt

Coffeescript synxtaxes

Recommended Posts

No problem or anything, just advices & experience feedback

I've ben using coffeescript for like 2/3 years, and right now getting into those greensock' super-tools

 

Problem is, greensock ends up being quite unreadable with coffeescript

 

Simple example (those examples aren't here to show anything work) : 

Javascript :

Coffeescript (quick and dirty translation via js2coffee of the previous one) :

See the Pen MYBOpq?editors=001 by bbnnt (@bbnnt) on CodePen

Coffeescript (another snipper a bit more worked out) : 

See the Pen jEpamz?editors=001 by bbnnt (@bbnnt) on CodePen

Oh wait… There are no onComplete or whatever options yet

Complex greensock+coffee animations -> skyscrapers !

 

Acknowledging a lack of experience on my side, but I hope this "problem" is relevant enough

I'd look for advices to use greensock with coffeescript, in a more readable and efficient way; if anyone has tips on this

See the Pen RNBjpR?editors=001 by bbnnt (@bbnnt) on CodePen

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×