Framer Update, Layout & Design

Framer Update: Text Truncation

Framer Update: Text Truncation

Framer Update: Text Truncation

Benjamin

·

2:24

·

6K views

·

About this lesson

Introducing Text Truncation. This new property lets you set a maximum number of lines for any Text Layer, with support for both single and multi-line truncation. This makes it easy to manage dynamic content and keep layouts under control. You can find the new property under the Text menu, and it supports Variables too. Watch the video to see the new layout setups this unlocks. https://framer.com/updates/text-truncation

Sign up: https://framer.link/yt

Follow: https://framer.link/yt-x

Learn: https://framer.link/yt-academy

0:00Yo, my name is Benjamin and this is0:03truncation in framer.0:08Let's dive in. In our component, we have0:12some copy that appears on click and the0:15text contents here are assigned to a0:17variable. So, we don't know the amount0:20of lines up front. This is a great use0:23case for truncation as it would let us0:26control the exact amount of lines shown0:29regardless of the actual contents. So to0:33truncate with the text layer selected,0:36I'll head over to the text menu and hit0:39truncate. This adds a new property0:42control that lets you decide the amount0:44of lines to truncate, which works0:47especially well on text layers with0:50height set to fit. Plus, this new0:53property can also be made a variable,0:56which is useful for components like my0:59accordion where on the instances we can1:02decide the exact lines to show per row.1:06So here we see all the rows with1:08different copy and then I'll set the1:11variance to open for all of these so we1:14can have a look at the lines. So with1:17truncate we can work with dynamic1:20content and still control the exact1:23amount of lines shown which is useful in1:26so many different layouts and1:28components. And of course, we could also1:31pick a unique amount of lines to show1:33for each row here by putting in a1:37variety of truncate values. So we can1:40try something like this. Then I can1:43select all rows and set the variance1:45back to closed. And just like that, we1:49have designed an accordion with dynamic1:52contents where we have full control over1:55the amount of lines shown per row and1:58thus the height to which each row2:01animates. That's multi-line truncation2:04in Framer. Thank you for watching and2:07stay tuned for more updates coming soon.2:14[Music]
TeachesSizing

Watch on YouTube ↗

More in this topic

Framer Update: Logo Shaders2:05
Framer Update: Logo Shaders
Framer Update12K views · 1 month ago
Framer Update: CMS 3.04:13
Framer Update: CMS 3.0
Framer Update14K views · 1 month ago
8 Framer shortcuts you're probably sleeping on4:19
8 Framer shortcuts you're probably sleeping on
Layout & Design3K views · 2 months ago
Framer Update: Holo Shader1:46
Framer Update: Holo Shader
Framer Update6K views · 2 months ago
Framer Update: Auto Translate3:09
Framer Update: Auto Translate
Framer Update4K views · 2 months ago
Framer Update: Stack Sorting and Bento Grids2:16
Framer Update: Stack Sorting and Bento Grids
Framer Update7K views · 2 months ago
Shader: Chromatic Aberration1:56
Shader: Chromatic Aberration
Framer Update7K views · 2 months ago
Sharing Vector Sets Across Projects (Vectors Lesson 7)3:41
Sharing Vector Sets Across Projects (Vectors Lesson 7)
Layout & Design1K views · 3 months ago

Create a free website with Framer, the website builder loved by startups, designers and agencies.