This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Cemre Güngör
Posted Dec 10 - Read on Facebook

I added drag resistance at top/bottom bounds to Koen's "ScrollViewBest" project. Would appreciate any other improvements / refactors. It would be awesome if we could get this to a place where it's good enough to be in native framer?

Live demo: https://dl.dropboxusercontent.com/u/811105/ScrollView2.framer/index.html

Code:
https://www.dropbox.com/s/nf9spke4blqtzl7/ScrollView2.framer.zip?dl=0

6 Comments

Aaron Carámbula

Wow this feels really great. Let's get this in!

Cemre Güngör

I was actually showing this to a developer who works on qc and he was a little offended that we use springs to emulate the decay animation. If I find time to sit with him I could maybe get the actual math equation in there. He explained to me how it actually works in ios but it went over my head :(

Koen Bok

I can add a decay animator :-)

Allan Grinshtein

Piggybacking on Cemre's post, I made a similar thing last night: https://www.dropbox.com/sh/xobt4jigs9nlgmh/AAA5Tnnuyi7QKcr6rgGnDYWia?dl=0

I threw it into a class, so you can instantiate a new "InertialScroll" object.

Andreas Mitschke

Cemre Güngör Aren't those actually gravitation and friction physics used for this ?

To repost this from line 64++: https://github.com/iamralpht/iamralpht.github.io/blob/master/physics/gravity.js

I occasionally draw back to Ralph Thomas' functions, his doings are a real revealing bless for non-backend ppl like me.

Johannes Eckert

This is so needed in framer.

Read the entire post on Facebook