Announcement

Collapse
No announcement yet.

How to Create a Pulsating Button using CSS Animation

Collapse
X
Collapse
First Prev Next Last
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • topting
    replied
    You are right. I tried saving without doing anything and I get the same error? Is there a fix?

    Leave a comment:


  • glennrocksvb
    commented on 's reply
    Can you save even without the code here? I suspect this is an existing issue.

  • topting
    replied
    Both css editor and site builder. I'm not using cloud.

    Leave a comment:


  • glennrocksvb
    commented on 's reply
    Is that error from CSS Editor in Sitebuilder? Are you on vBCloud?

  • topting
    replied
    Originally posted by glennrocksvb View Post
    Want buttons that grab attention like what this forum has for the Register Now button for guests?

    Instructions:
    1. Add these CSS in css_additional template in AdminCP or via Sitebuilder > Style CSS Editor.
    Code:
    .heartbeat {
    -webkit-animation: pulse 1s ease infinite;
    -moz-animation: pulse 1s ease infinite;
    -ms-animation: pulse 1s ease infinite;
    -o-animation: pulse 1s ease infinite;
    animation: pulse 1s ease infinite;
    display: inline-block;
    }
    
    @-webkit-keyframes pulse {
    0% {
    -webkit-transform: scale(1);
    }
    
    25% {
    -webkit-transform: scale(1.1);
    }
    
    50% {
    -webkit-transform: scale(1);
    }
    
    100% {
    -webkit-transform: scale(1);
    }
    }
    
    @-moz-keyframes pulse {
    0% {
    -moz-transform: scale(1);
    }
    
    25% {
    -moz-transform: scale(1.1);
    }
    
    50% {
    -moz-transform: scale(1);
    }
    
    100% {
    -moz-transform: scale(1);
    }
    }
    
    @-ms-keyframes pulse {
    0% {
    -ms-transform: scale(1);
    }
    
    25% {
    -ms-transform: scale(1.1);
    }
    
    50% {
    -ms-transform: scale(1);
    }
    
    100% {
    -ms-transform: scale(1);
    }
    }
    
    @-o-keyframes pulse {
    0% {
    -o-transform: scale(1);
    }
    
    25% {
    -o-transform: scale(1.1);
    }
    
    50% {
    -o-transform: scale(1);
    }
    
    100% {
    -o-transform: scale(1);
    }
    }
    
    @keyframes pulse {
    0% {
    transform: scale(1);
    }
    
    50% {
    transform: scale(1.1);
    }
    
    100% {
    transform: scale(1);
    }
    }
    2. Add hearbeat CSS class to any button or HTML tag you want to use in HTML/Ad/PHP modules, Announcemens, Notices, etc. You can add the heartbeat CSS class to any element you want to pulsate not just to buttons.

    3. If you are using this for buttons, you also need to add b-button and b-button--primary or b-button--special CSS classes to the button.


    Demo:

    <button href="https://www.paypal.me/noypiscripter/5" class="b-button b-button--special heartbeat" target="_blank">My &hearts; beats like this</button>
    i followed the instructions and it returns "cant save CSS error". I have vb5. have anyone seen this before?

    Leave a comment:


  • glennrocksvb
    replied
    Right click on the Register Now button on this site and then select Inspect to see how the hearbeat and b-button classes are added to the class attribute in the HTML tag.

    Leave a comment:


  • hijabforum
    replied
    I would like it to be the exact same as yours in the bottom right corner

    Leave a comment:


  • glennrocksvb
    replied
    Where do you want to use the pulsating button?

    Leave a comment:


  • hijabforum
    replied
    Im having trouble with the 2nd step

    Leave a comment:


  • glennrocksvb
    replied
    Did you follow all the 3 steps mentioned in the first post?

    Leave a comment:


  • hijabforum
    replied
    Hello Glenn I'm having trouble with the register now button. I implemented the code but its not showing up on the main page, is there something else that needs to be done?

    Leave a comment:


  • glennrocksvb
    commented on 's reply
    Glad to help!

  • RUBE
    replied
    Hello,

    Everything is working GREAT...
    Thank You Glenn for the Help!

    Thanks a Million!!!!!
    RUBE aka D.F.

    Leave a comment:


  • glennrocksvb
    replied
    Code:
    <a href="http://www.mywebsite.com/register/" class="b-button heartbeat" style="background:red; color:white;">Register Now!</a>
    Last edited by glennrocksvb; 02-12-2022, 12:59 PM.

    Leave a comment:


  • RUBE
    replied
    Hello Everybody,
    I got it working... Couldn't have done it with out you Glenn - Thanks a Million!!!!!
    I know I'm pushing my luck, but how hard will it be to change that pulsating button color to Red?

    Thank You for Your Time!!!!!
    RUBE

    Leave a comment:

Users Viewing This Page

Collapse

There is 1 user viewing this forum topic.

  • Guest Guest

Latest Posts

Collapse

Working...
X
Searching...Please wait.
An unexpected error was returned: 'Your submission could not be processed because you have logged in since the previous page was loaded.

Please push the back button and reload the previous window.'
An unexpected error was returned: 'Your submission could not be processed because the token has expired.

Please push the back button and reload the previous window.'
An internal error has occurred and the module cannot be displayed.
There are no results that meet this criteria.
Search Result for "|||"