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.

Animations not working, autoClose not working

See original GitHub issue

Oddly, animations are not working for me at all. When the toast appears, there is no animation. Similarly, when I manually close the toast, there is an abrupt close with no animation. And because autoClose is dependent on the animation, the toast will never close until triggered manually.

I have the CSS file referenced correctly, and styling seems to work otherwise. My implementation is as follows:

Container:

<ToastContainer
    position="top-right"
    type="error"
    autoClose={4000}
    hideProgressBar={false}
    closeOnClick={true}
    pauseOnHover={true}
/>

Trigger code (tried placing this in various areas in my code with the same result):

toast('message', {
    type: toast.TYPE.ERROR,
    autoClose: 3000,
    hideProgressBar: false,
    pauseOnHover: true,
});

this

I’ve tried every variation of settings to no avail. This was attempted using the newest versions of Chrome and Safari. What could be going wrong here?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:16 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
JustFly1984commented, Jul 3, 2018

I have CSS modules in my project, and just copied all CSS from the module and added :global prefix to each one. I do not have animations nor autoClose working.

0reactions
chiragbhansalicommented, Sep 11, 2020

@fkhadra Can you please add this to the documentation? It might be helpful for people using CSS Modules.

Read more comments on GitHub >

github_iconTop Results From Across the Web

autoClose of tooltipster is not working - Stack Overflow
On page load the tooltipster shows, but i want it to stay there unless user clicks on the link in tooltipster content. The...
Read more >
How To Fix Brawl Stars App Auto Close Problem Android & Ios
How To Fix Brawl Stars App Auto Close Problem Android & Ios - Brawl Stars App Automatically Closing. 2K views · 2 years...
Read more >
Fixed issues in Animate release - Adobe Support
Here's a list of issues we fixed in the latest release of Animate. ... Curly braces do not auto close in the Actions...
Read more >
animation - API Reference - Kendo UI MultiSelect
Configures the opening and closing animations of the suggestion popup. Setting the animation option to false will disable the opening and closing animations ......
Read more >
jquery-confirm.js | The multipurpose alert & confirm
QUICK USE THEME ANIMATION AUTO CLOSE LOAD FROM URL BACKGROUND DISMISS GLOBAL DEFAULTS ... Auto-close, Ajax-loading, background-dismiss, themes and more.
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