How to make this feature?


When I pause the song, the bird will click on the ‘play’ icon to continue it. How to make this feature?

Hi!
Just a very rough concept (not the ultimate solution, no), using Three.js + Tween.js:

3 Likes

I c. It’s the same function. Thanks.

You’re welcome :slight_smile: :beers:

Thanks @prisoner849 for this approach.
I tried it, but not working for me. Of course, my use case is a little different.
I have some HTML elements (consider cubes!) on my webpage. And a big canvas in the background of the page.
I want to create some 3D objects and position them just under those HTML cubes. Actually I’m trying to get the HTML cubes positions in Vec2 and set it for my 3D objects.
I’d checked your code here. And I tried it. But I didn’t get the expected behavior. Do you have any idea about this problem?
Regards.

@hrahimi270
Hi! Would be cool to provide a live code working example, that demonstrates the problem :slight_smile:

Hi. Actually my problem solved. I changed the perspective of the camera and it solved!
I followed this article.