Jump to content
GreenSock

krunal

On scroll motion flip the png images inside svg element.

Recommended Posts

Hello @GreenSock community,

 

There are two issue i am facing in scrolltrigger animation.

1) In codepen link you can see the  full page site.  I need on scroll flip animation.

 

<div class="card">
  <div class="face front">
    QR img 
  </div>
  <div class="face back">
    normal img
  </div>
</div>     

on scroll first front section visible. After amount of scroll front will change to back face img.

image.thumb.png.2406736a402fc6fe983ded2227eed118.png

 

After scroll to next section (IDC FEATURES) it's move to back img. Bottom attact img are backface img.

image.png.414bf79ff915d0bdda786ae73b1e2931.png

 

 

2) Back face images are visible on bottom of section. It's jump to bottom as per screensort.

image.png.c958536e943997c306a82641a60202be.png

If you scroll to bottom you can see it's jump to bottom.  Is there any solution to fix this images movement. After animation section scroll to bottom.

thanks !

See the Pen RwxQzXM by krunalfrontend (@krunalfrontend) on CodePen

Link to comment
Share on other sites

Hi krunal,

 

We don't have the resources to help you go through hundreds of lines of HTML, CSS, and JavaScript to help you troubleshoot your app. Please see the forum guidelines.

 

You'll significantly increase your chances of getting a solid answer if you provide a VERY minimal demo that only focuses on the one small part that you're having problems with. The simpler the demo is, the better.

 

  • Like 2
Link to comment
Share on other sites

Hello @all,

 

See the Pen PoEEbKm by krunalfrontend (@krunalfrontend) on CodePen

Here are minimal demo. I want to fixed card after motion path and mobile img change and scroll to bottom.

Is there any way to make fix element of two different scrolltrigger element.

 

 

Link to comment
Share on other sites

Hi @krunal. I read your question several times and I'm lost, sorry. I don't understand what you're asking. Is there a GSAP-specific question we can help with? Unfortunately we don't do "build-to-order" consulting but we're happy to answer any GSAP-specific questions about the tools themselves, the API, etc. We just can't do "please take my demo and make it do ____ and then ____ and also ____" :)

 

Maybe look through the demos at https://greensock.com/st-demos and see if there's anything there that gets you going in the right direction. 

 

Good luck!

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.
×