question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Button animation not working inside of card

See original GitHub issue

I have a button inside of a card-footer:

img

<div class="card blue">
    <div class="card-content">
        <h1>{{ theme.name }}</h1>
    </div>
    <div class="card-footer">
        <p>Built by {{ theme.author }}</p>
        <a class="waves-effect waves-light btn"><i class="mdi-file-cloud"></i>View Theme</a>
    </div>
</div>

When I press the button, the wave effect is not invoked.

If I take the a and place it outside the card-footer, the wave effect is invoked as expected.

How can I maintain the wave effect inside of a card-footer? Thank you.

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:26 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
bpetetotcommented, Jan 2, 2015

@ByteBlast Hi, you can trigger the wave effect by adding this into your controller :

Waves.displayEffect();
1reaction
AmareshKulkarnicommented, May 21, 2016

@razvanioan - The async behavior seems to be true with Aurelia as well. I had the same issue with animations and it started working once I explicitly called Waves.displayEffect();.

Thank you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

android - How to slide out a button inside a cardview?
GONE . In another attempt, I called viewHolder.button.animate().x(some_number) in the adapter, but it did nothing as well.
Read more >
(RESOLVED) - Struggling with 'button-card' - Frontend
Hi all, I'm using a theme with more or less transparent cards. I want to achieve follwing (if possible): Name of card above...
Read more >
Animated buttons and flexbox button wrappers - Webflow
A button is an element that links to pages, page sections (anchors), external links, emails, assets, and telephone numbers.
Read more >
CSS Card with hover animation and mobile fallback - YouTube
Another fun animated card that I created: https://youtu.be/YmyqlM13JUUTransition / Animation performance: ...
Read more >
Animated Post Cards Opening on Click with javascript and css
Learn how to create the effect of expanding or shrinking a container, a post or a box with simple css and javascript.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found