Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

always p-pulse #62

Closed
chadsteele opened this issue Nov 15, 2018 · 2 comments
Closed

always p-pulse #62

chadsteele opened this issue Nov 15, 2018 · 2 comments

Comments

@chadsteele
Copy link

chadsteele commented Nov 15, 2018

Thank you @lokesh-coder - great tool!

Is there a way to get it to pulse on every click? I tried moving p-pulse from the parent class to the state, but it doesn't work...

            <div class="pretty p-icon p-round p-toggle ">
              <input type="checkbox" />
              <div class="state p-info p-on **p-pulse**">
                <i class="icon fa fa-arrow-down"></i>
                <label>Descending</label>
              </div>
              <div class="state p-info p-off **p-pulse**">
                <i class="icon  fa fa-arrow-up"></i>
                <label>Ascending</label>
              </div>
            </div>
@lokesh-coder
Copy link
Owner

Hi @chadsteele ,

Actually reverse animation feature is not yet available. 😞 But, you can try this code,

.pretty.p-pulse:not(.p-switch) input:not(:checked)~.state label:before {
    animation: pulseBack 1s;
}

@keyframes pulseBack {
    from {
        box-shadow: 0 0 0 1.5em rgba(189,195,199,0);
    }

    to {
        box-shadow: 0 0 0 0 #bdc3c7;
    }
}

@chadsteele
Copy link
Author

chadsteele commented Nov 19, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants