140 questions
Best practices
0
votes
0
replies
37
views
What’s the best way to implement Rent/Buy video access (with expiry) on a Framer website?
I’m building a Framer website for a US-based client who wants to sell access to films with both Rent and Buy options.
Requirements:
Client is located in the US
Videos are currently hosted on Vimeo (...
1
vote
0
answers
428
views
Framer Asymmetrical Grid Fill
Does anyone know how to correct Framer's asymmetrical grid alignment when using frames to fill width? If I use multiples of 1fr to fill the grid, everything aligns. If I set asymmetrical values (say, ...
0
votes
0
answers
611
views
Overriding text color in React + Framer?
I'd like to override the text color of my Component to make it a multi-stop linear gradient. Following the code examples provided by Framer, this is what I've tried:
export const withCustomColor = (...
1
vote
1
answer
1k
views
How to scroll X while scrolling Y in ReactJS and Framer motion
How to scroll x on a div while the user keeps scrolling on the Y axis.
I want to recreate the "Our Work" section on https://nifty-template.webflow.io/ using ReactJS and Framer Motion.
...
-1
votes
1
answer
236
views
Why does my eventListener works only once?
Ive been trying to make this page where you can change object when clicking a key, but the eventlistener i am using works only once i select the screen that it is set on.
const onKeydown4 = (e) => {...
1
vote
0
answers
2k
views
Framer Motion animation resetting when menu is opened
I have a fancy heading animation using whileInView to trigger, but when I open my menu drawer, the heading animations all reset to the initial state where they are all hidden.
The heading animation ...
0
votes
1
answer
1k
views
How to use useInvertedScale with the latest framer motion version in react js?
I use the useInvertedScale hook imported from [email protected] and it throws an error useInvertedScale is not imported with the latest version of framer-motion .
This is how I use it :
import React ...
5
votes
1
answer
21k
views
Framer Motion: change color animation direction
In Framer Motion, I'm trying to get two colors to animate smoothly. The colors are red 'hsl(0, 100, 50)' and blue 'hsl(240, 100, 50)'. Unfortunately, the animation is going through the color wheel, ...
3
votes
0
answers
3k
views
Framer Motion - animation already done on page load - SSR problem?
I'm trying to create a really simple loader animation with Framer Motion, and I got stuck with some weird things happening.
When I reload the page animation seems to be already completed, and it doesn'...
0
votes
1
answer
260
views
Converting exact animations from desktop to phone (FRAMER API)
so I encountered with the weird problem. So I'm using React and animating page with FRAMER API.
So what I'm doing:
On specific ScrollY, let's say 900, some animation pops up. However, when there's a ...
2
votes
0
answers
1k
views
Freezing/jumps when swiping Pages in Framer-Motion
I have an app I'm building with Framer Motion and I'm trying to disable vertical swiping whenever someone swipes to the left or right page. I noticed that there are "lag spikes" or "...
0
votes
1
answer
556
views
Framer / React: Can't change focus state of Text Input onClick / onChangePage
This is a Framer/React question:
I have a bunch of text fields in a "page" component and I want the focus to shift on every "page" change.
There's a button controlling the pager ...
0
votes
1
answer
204
views
How do I access Framer hook from another component
I've a useState Hook set up in a file carousel.tsx
export function Carousel({ children }) {
//Set Active State Carousel Item
const [active, setActive] = React.useState("default")
//...
11
votes
4
answers
19k
views
In framer-motion, how to animate pure data like a number from 0 to 100?
How can I animate a pure number from 0 to 100 with a transition config?
<motion.div>
{num}
</motion.div>
1
vote
3
answers
12k
views
Framer: Check if element is into viewport
While using Framer Motion API to create interaction and animations on my site, I can not find how to use it in order to trigger an animation when something is on the screen.
For example, this SVG ...
0
votes
1
answer
222
views
How to find specific items in an array in React/Framer?
I am pulling down results from an API, like so:
const [state, setState] = React.useState({
matches: undefined,
chosenBets: [{}]
});
const API = "https://api.myjson....
2
votes
1
answer
3k
views
How do you get React Framer-motion to fire onClick events for mobiles when using the drag prop?
I'm currently using the React library Framer Motion to help animate some of the gestures I want in my App. I seem to be having an issue with the "drag" property for the "motion.div"...
5
votes
1
answer
8k
views
Snapping to position onDragEnd with motionValues using Framer Motion and React
I'm using framer motion to create a swipe interaction in my project. I'm trying to make it so that when the user is done dragging the child, it will 'snap' back into a set position.
I've seen from ...
-1
votes
1
answer
146
views
How to create a functional push notification (that fires after x amount of time) component with framer x?
I am trying to create a push notification in framer x (react based).
It should work something like this:
customer opens mockup > timer in background starts > timer reaches five and fires event > ...
-1
votes
1
answer
118
views
Play an mp3 file in a if condition
I am writing a code in Framer x which uses Javascript and react library.
I would like to make different sounds depending on the coordinate values of for instance mouse ( x, y, and z ). How can I ...
11
votes
0
answers
1k
views
Exporting Framer X to React Native
Has anyone had any luck exporting Framer X prototypes to RN-consumable JSX? All I want is to export the UI prototype and animations that I made using Framer, so I can implement the logic using RN.
My ...
0
votes
1
answer
43
views
Can a regular expressions be used to compare and match set of words?
Can a regular expressions be used to compare and match set of words?
For example, I want a string like this...
"loan nation"
to match on these...
"Loan Origination"
"international loans"
but not ...
1
vote
1
answer
97
views
Getting specific key from Firebase in Framer
im really new in coding so my question might be very easy.
On image below you can see what i have in Firebase.
Here's what i have in my Firebase
In Framer im using this module and after writing ...
2
votes
1
answer
270
views
How to increase contrast between colors generated from image?
Some details:
I'm making a small prototype in Framer, some kind a wallpaper app. I use vibrant.js to automatically pick colors from the images to add a bit of a tint to my interface. I use two ...
1
vote
0
answers
36
views
FramerJS: how can you animate similar layers in different locations on screen, simultaneously and repeatingly?
I am trying to create a scene of blinking stars where essentially you have multiple, similar layers (difference in size and x/y coordinates) animating across different locations on the screen, ...