Html tag animation text

Text Animation in CSS

Hello Guys today i am going to show you some CSS animation on text.All the animation i am showing have similar code and after understanding those animations , you can then easily create your own animation with it. Let’s get started. Before dive into the topic , first understand this thing.

Читайте также:  Модуль черепашка python команды

What is var in CSS?

  • I am going to explain one animation because the other animations are similar and you will easily understand those.

Animation — 1

In this animation , we will create a bubbly type text animation.

HTML

 class="container">  style="--i:1">A  style="--i:1.3">N  style="--i:1.6">I  style="--i:1.9">M  style="--i:2.2">A  style="--i:2.5">T  style="--i:2.8">I  style="--i:3.1">O  style="--i:3.4">N  
  • We have created a ul element and inside it we have created li elements for each alphabet and provided each li element a variable called «i» with different values.

css

.container  display: flex; justify-content: center; font-size: 3rem; list-style-type: none; display: flex; gap: 20px; > /* */ li  animation-name: bubbly; animation-duration: calc(var(--i) * 1s); animation-fill-mode:forwards; animation-timing-function:ease-in-out > /* keyframes */ @keyframes bubbly  0%  opacity: 0; /* transform: translateY(-100px); */ transform: scale(0); > 70%  opacity: 1; transform: scale(1.5); > 100%  opacity: 1; /* transform: translateY(0); */ transform: scale(1); > > 
  • First we have styled the container element with some properties.
  • Then we have provided the animation name to li element, this animation will be applied to all the li elements
  • Here comes the best part , we have used the calc() function, The calc() function performs a calculation to be used as the property value.
  • inside calc(), we have used our variable «i» using var() function.It will use the value of variable «i» and set the animation duration with that value so , the animation duration of all the li elements will be different.
  • Then inside the keyframes , we have defined our animation.

Источник

15 Gorgeous CSS Text Animation Effects [Examples]

One important factor of website design is the font choice and the style of typography that you select. This can easily be a make or break situation. Fonts catch the eye very quickly and can engage the user or push them away, so it’s important to make the right choice.

However, fonts and typography don’t have to be static. You can introduce CSS text effects on your website to help you stand out. Things such as scrolling text, shadows, text glow, style, colour, 3D effect and many more.

On this article we’ll be focusing on CSS Text Animations. These are simple and easy to integrate into your design, with pure HTML, CSS and (in some of them) some JavaScript. You can use them on scrolling animation websites.

15 Amazing Text Animations with CSS

These CSS text animations can be used to make your webpage more interesting and give it a unique design and feel. You have to be careful though, not all of these CSS text effects will benefit every design. For example, with a minimalistic design, you may want to choose a more subtle effect (just check these Minimalist WordPress themes by yourself and you will easily find out that they could ruin their clean design)

However, there should be a design in here that fits every user’s needs and expectations to improve your design and look. Check out these 15 text animation CSS codepens that we have selected for you.

1. Scroll Trigger Text Animation

A great example of how you can take advantage of CSS text animation which is triggered by a user scrolling. This one uses a trigger both for scrolling up and down, so the animation will always work in any direction.
Scroll-triggered animations are perfect for one-page websites.

If you do not know how to create a one-page website, fullPage.js library will make it easy for you. You can even use it in WordPress builders like Elementor and Gutenberg.

And if you are looking for scroll trigger animations, this article on How to Create CSS Animations on Scroll might be very helpful for you.

2. Text Colour Animation Effect (CSS only)

This one is just pure HTML and CSS, so it will be very easy to use and does not require any JavaScript. It sends a colourful transition of different colours across the text using a gradient, giving a very modern look.

You can easily change the chosen colours to fit your own brand by altering the hex codes in the CSS.

3. Static CSS Colour Change

Great for a big title, this one changes the colour of each word without any transition. This CSS text effect can be useful if you have a minimalistic design and don’t want things to look too busy.

Made purely with HTML and CSS, you can easily change the colours and speed of the animation. Just try it yourself by modifying the CSS of the codepen.

4. Morphing CSS Text Effect

A more advanced animation which is made with pure HTML, CSS and JavaScript. As you can see in the text animation CSS codepen, you can make more advanced animations when you add a little JavaScript. However, this one is still relatively easy to edit and mould to your brand or style.

5. Bouncing With Reflection Text Animation (CSS only)

A bouncing CSS text effect that has a reflection, made with only HTML and CSS, making it very portable across different websites.

It uses a span HTML element to position each letter in a row and bounces each one during the text animation, so be careful where you place it.

6. Water Wave Text Animation (CSS only)

A calm water CSS text effect, it animates the effect of a calm wave within the text. Great for a range of different titles on a website, could really make it stand out.

This one only uses HTML and CSS, making it easy to work with.

7. Crossing On Scroll CSS Text Effect

If you are looking for something to trigger a text animation, an on-scroll animation like this one may be of use to you. It uses HTML, CSS and JavaScript to pull this off. The animation is light and very smooth. Scrolling the letters individually could also add more value to this CSS text effect.

8. Loading Style CSS Text Animation

Looks like a loading progress bar but in the form of a font. Change the text to anything you want and use this unique animation. You can easily change the colours of the text animation in the CSS codepen.

9. Flip Text Animation (CSS only)

Can be used as a loading animation when waiting for a response on a webpage, made with only HTML and CSS. The text flips over from left to right and is a very smooth animation.

10. Fade In Text Animation (CSS only)

A subtle text animation (CSS) that fades in when the page loads. Very smooth animation and has a subtle blur effect upon fading in. Made with pure HTML and CSS.

11. 3D Text Grow Animation

Text animation (CSS) with a 3D effect that grows up and down. A very fun and engaging animation to use.

12. Animated Blobs Text animation (CSS only)

A very subtle CSS text animation with a colourful background and engaging font type. Made with pure HTML and CSS, it is easy to change colours and font type to fit your brand and style.

13. Basic Text Animations (CSS only)

If you are looking for some basic reusable text animations (pure CSS) that can be quickly used in many places on a webpage, these ones are for you. Made with only HTML and CSS, they are easy to edit and learn from.

A catchy and engaging CSS text animation great for the main title on a webpage. It loops through different words and has a sliding animation effect to transition between each word. Made with pure HTML and CSS, so it is easy to work with and edit.

15. Typing Text Animation

A great way to showcase a range of words or sentences across a screen in one area. The typing CSS text effect looks great for many designs and uses a smooth animation. Made with HTML, CSS and JavaScript but a great one to learn from and it is easy to edit the words you need to use.

Conclusion

CSS Text animations are great, they help create an inviting space for the visitors and help catch the eye towards a certain location. They can suit very well in one-page websites with full screen sections, creating a very appealing design for the user. I’m thinking about product landing websites, squeeze pages, etc.

FullPage.js library is the perfect tool to create this kind of fullscreen website. It is available for WordPress builders like Elementor and Gutenberg. Add one of these CSS text animations in fullscreen mode and I’m sure the result will be promising. For example, as we explained in the 1st CSS text animation, the scroll-triggered animation fits very well in a one-page website with multiple sections.

It can be difficult to choose the right animation though, not all animations will work well on all designs, so be sure to ask yourself if the animation is too busy and maybe opt for a more subtle one. Don’t overuse CSS text effects either, it will make the page look tacky and overrun with animations.

Luke Embrey is a full-stack developer, BSc in Computer Science and based in the UK.
You can find out more about him at https://lukeembrey.com/

Join 2,000+ readers and learn something new every month!

Источник

55+ CSS Text Animations — Free Code + Demos

Collection of 55+ CSS Text Animations. All items are 100% free and open-source.

1. Neon Lights

2. Rainbow Effect

3. Line Through Effect 3D

4. Animated Neon Text

5. Pure CSS Glitch Experiment

6. Glowing Text, Music Inspired

7. Mix-blend-mode

8. Liquid Drop Using Gooey Effect

9. Spooky Typo

Experimenting with a CSS blur filter, text-shadow, and transform skew effects animated. Pause the animation on typo mouseover, not fog. On mobile touch typo to pause and touch anywhere else on the screen to run it again. Firefox mouseover/touch is not as smooth though x.x Prefers-reduce.

10. Spacious

11. Cartoon Type

12. CSS 3D Text Effect

13. Word Swipe Animation

14. Luminance

Background-clip text effect inspired by Astral Throb’s Coding to synthwave music really gets me in the flow. Check it out @ youtube.com/channel/UCpbH_7H71IPKq4eH7CD5spg

15. Pure CSS | FadeIn Text With Bars | KeyFrames & Scss

16. Clean CSS Glitch

17. CSS Neon Sign

18. Typed.scss: CSS-powered Animated Text

19. Text Animation 2

20. Shining Text Animation Effects

21. Animated Text Gradient

22. Handwriting Animation

My name animated for personal branding. This piece started out as a sketch on the iPad Pro using an Apple Pencil and Procreate. From there, it was converted into a single vector graphic using Adobe Illustrator. In order to optimize the SVG for animation, the graphic was chopped up i.

Источник

Оцените статью