Jump to content
Search Community

Pin element to footer

knalle test
Moderator Tag

Go to solution Solved by akapowl,

Recommended Posts

  • Solution

 

Hey there.

 

With regard to how pinning works, I am not sure this is even possible (but I might be totally wrong about this).

 

Here are two different ways you could achieve that desired effect, though:

 

 

1) either fake the pin with an animation of the desired element along the y-axis

 

See the Pen 582a6334ddb852c425276cd37bc75e91 by akapowl (@akapowl) on CodePen

 

 

 

or 2) have the element positioned absolute instead of fixed, pin it right away and then release it (when you actually would want to pin it)

 

See the Pen 7e9683415662fecfd1b013ceed33097a by akapowl (@akapowl) on CodePen

 

 

 

Hope this helps a bit.

 

Cheers.

  • Like 4
  • Thanks 1
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.
×
×
  • Create New...