HOWTO: WYSIWYG - Blinking Text

6 posts by 3 authors in: Forums > CMS Builder
Last Post: Yesterday at 3:07pm   (RSS)

Is there a way to add "blinking" text to WYSIWYG field?  If no, can it be done in a different field type?

Hi Rich, 

Do you have any plain HTML (and/or JS & CSS) that already does what you want?  That would be the first step.

Dave Edis - Senior Developer
interactivetools.com

No HTML and/or JS/CSS, but there are plenty of examples I can find.  Once I find then what?

Hi Rich, 

I had AI mockup a quick example:

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>Blinking Text Demo</title>
  <style>
    /* CSS animation that toggles visibility every 0.5 s */
    @keyframes blink {
      50% { visibility: hidden; }
    }

    .blink {
      animation: blink 1s step-start infinite; /* 1 s cycle; adjust as needed */
    }
  </style>
</head>
<body>
  Normal text… <span class="blink">blinking text</span> …normal again.
</body>
</html>

What you can do is insert the content you want displayed inside the span tag.

It's also possible to update the WYSIWYG to include a pulldown menu that lets users select a class, but that involves a few more steps. 

Let me know which solution you prefer.

Dave Edis - Senior Developer
interactivetools.com

Would prefer to use the WYSIWYG field vs editing the file.  I have someone editing the site and they do not know how to download file, edit and then upload.   Thx.