Jump to content
GreenSock

Amanda

Adding Sound Effects to a Timeline?

Recommended Posts

Quick question - if it possible to add sound effects to a GSAP timeline?

Link to comment
Share on other sites

Hi ald603 :)

 

You can't add the sounds directly to a timeline as GSAP has no way to play them, but you can certainly add a function with sounds and call that when you need it.

 

Happy tweening.

:) 

  • Like 1
Link to comment
Share on other sites

Thank you, this is pointing me in the right direction for what I'm working on. 

Link to comment
Share on other sites

Hi ald603  :)

 

You can't add the sounds directly to a timeline as GSAP has no way to play them...

 

I see you need a certain song stuck in your head...

See the Pen epLjrG by osublake (@osublake) on CodePen

 

Lots of media properties can be tweened including playback.

  • Like 1
Link to comment
Share on other sites

Well... where were you hiding when this question was asked.  ;-)

 

Originally, I thought she was asking about dropping a raw sound file right into the tween so I posted my answer. Later, I was actually thinking about your demo, but then got sidetracked and didn't make it back here. Of course, you never came along to correct me either... until now. Dang it Blake, you've got to show up to patrol these forums and keep me in line.  :-D   

 

 

...and yes - thanks very much for putting that song in my head again.

  • Like 2
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.
×