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

What is Framer? Join the Community
Return to index
Florian Pnn
Posted Apr 06 - Read on Facebook

Hey everyone!
I'm trying to use Hammer with FramerJS but I was wondering how you select the view you want to target?
In the getting started part (https://github.com/EightMedia/hammer.js/wiki/Getting-Started) they use the ID but on framer ID is kind of random. Any idea how I can easily target a view?

Thanks!

2 Comments

Florian Pnn

I also get this kind of console error :
Uncaught ReferenceError: Hammer is not defined
Uncaught TypeError: Cannot call method 'addEventListener' of null

Depends on the order I import Javascript in my HTML file, any idea how I can make Hammer works nicely with FramerJS ?

Johannes Eckert

You need to call it on view._element

Read the entire post on Facebook