What Do You Need for a Beating Heart Effect In Your Text?

To create a beating heart effect in HTML and CSS, follow these steps:

  1. Add the following HTML code wherever you want the heart to appear:
 
<span style="font-size: 24px; animation: heartbeat 2s infinite;">❤</span>
  1. Add the following CSS code within a <style> tag or in your CSS file: (NOTE: click to select)
 
@keyframes heartbeat { 0% { font-size: 24px; } 50% { font-size: 32px; } 100% { font-size: 24px; } }

That's it! The heart symbol (<span> with the content ) will now be displayed with a beating effect, growing and shrinking continuously every 2 seconds.

Comments

Popular posts from this blog

How Should You Put Your Text in a Box?

Tricks : Getting Image URL When Page Doesn't Want You To!

A Web Interface to Try Dual Key Caesar Cipher Encryption and Decryption