Aleks Profile picture
Feb 6 β€’ 12 tweets β€’ 4 min read
Framer February β†’ Day 5 ✨

A super quick way to create a gradient cursor highlighter in @framer. Let's get started ↓
πŸ₯Ή As always, begin by drawing a frame (F)
Next, add a fill (𝘢𝘴𝘦 π˜₯𝘒𝘳𝘬𝘦𝘳 𝘀𝘰𝘭𝘰𝘳𝘴 𝘰𝘯 π˜₯𝘒𝘳𝘬 𝘣𝘒𝘀𝘬𝘨𝘳𝘰𝘢𝘯π˜₯𝘴, 𝘒𝘯π˜₯ 𝘭π˜ͺ𝘨𝘩𝘡𝘦𝘳 𝘀𝘰𝘭𝘰𝘳𝘴 𝘰𝘯 𝘭π˜ͺ𝘨𝘩𝘡 𝘣𝘒𝘀𝘬𝘨𝘳𝘰𝘢𝘯π˜₯𝘴)

β€’ 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
γ€€

Keep Current with Aleks

Aleks Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @aleksliving

Feb 6
Framer February β†’ Day 6 ✨

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.
Read 9 tweets
Feb 4
Framer February β†’ Day 4 ✨

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 Image
☝️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
Read 5 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(