β’ Add a corner radius (if you want...)
β’ Add a border (use a width of 1-3px)
Now, select your frame and create a component (β + β₯ + K)
β¨ We'll need a little bit of code for the next step. Head on over here, and copy everything you see β pastebin.com/GZpHzA6n
Now, it's time to add an override to the component. With the primary variant selected, go to:
β’ Code Overrides β New File β New Override
β’ Name it whatever you want, and replace the default with the code you copied in the previous step β
Let's apply the newly created override. Select the primary variant and link the override you added earlierβ
If you preview your creation now, you'll notice that the highlight is working, but it's not quite aligned with your cursor π°
To fix this, add a stack ( β₯ + β + β΅ ), and set it to 100% width & height. At this point, you're pretty much done π₯³
But, if you'd like to get rid of the cursor on hover, keep up β
In the component settings, select the primary variant, and:
β’ Under styles hit the β + β
β’ Select "Cursor," and set it to "None"
π You can, of course, edit the colors of your cursor highlighter by changing the rgb values for the "backgroundImage" propery of the "Highlight" function in the code override.
β¨ That's it! Congrats, you have a pretty awesome card that adds a gradient highlight to your cursor. If you found this tutorial useful, please RT to share the love π«Ά
β’ β’ β’
Missing some Tweet in this thread? You can try to
force a refresh
Create super dope draggable windows (or anything else) in @framer. Here's how β
βΆ For the purpose of this tutorial, I'll be showing a use case where your website has an overlay with the draggable container inside of it. That said, you can make anything else draggable using this same method!
βοΈ Begin by creating an anchor for your pop up overlay. This can be an icon, button, or anything else.
In this case, I'll be opening the overlay modal with some centred text.
Getting rid of those pesky scroll bars in @framer. Because sometimes, you just need some peace in your life. Let's get started β
The first thing we're going to need, is some code for the scrollbar override written by the talented @rafunderscore. You can find it on his GitHub here β bit.ly/3js4UZl
βοΈNext, we'll need to set up a code override. To do this:
β’ Head over to Assets β Create Code File β "New Override"
β’ Name this whatever you'd like
β’ Replace the code you see with the code you copied earlier