Truncating text can be super useful for several reasons, in particular to maintain consistency in the design of your Hub pages such as blog, guides, articles... It allows you to maintain the consistency of the layout regardless of the length of your texts (see image below).
Here's how you can do the same in under 5 minutes
In my example, I am using the “slice” class.
You can add this code in an embed or in the body of your page directly
Be sure to modify “slice” with your css class
var elements = document.getElementsByClassName ('Slice');
All you need to do is change the 64 in the code above to your value. It's as simple as that!
There is more to enjoy 😎