Jump to content
Search Community

Draggable and ThrowProps (scroll out of the viewport)

Caig test
Moderator Tag

Go to solution Solved by Carl,

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

Hi All,

hoping for a little advice please

Ive just downloaded Draggable and throwProps and having a play and doing a little reading on the api… what I’m looking to do is have a div (100% by 100%) scroll out of the viewport (out the top of the browser) but keep 10% of it still visible so i can drag it back down.

I want to achieve this without creating a container for the scrollable div which would be positioned out of the viewport…… any ideas peeps

Cheers

Craig

Link to comment
Share on other sites

  • Solution

Hi and welcome to the GreenSock forums.

 

It would really help if you could provide a very basic demo as described here: http://greensock.com/forums/topic/9002-read-this-first-how-to-create-a-codepen-demo/

 

You can fork this demo here that has Draggable and ThrowProps available, although I doubt you need ThrowProps to illustrate what you are trying to solve. 

 

Thanks!

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