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

Add a progress bar showing the time until the toast closes #109

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

konclave
Copy link

@konclave konclave commented Oct 18, 2022

Implemented the progress bar that shows the time until the toast closes (#94)

How to use:

Toastify({
        progressBar: true,
        progressBarColor: 'coral',
        text: "With progress bar",
        gravity: "top",
        position: 'left'
    }).showToast();

Animation is done with CSS animation property.

@bengabp
Copy link

bengabp commented Nov 11, 2022

Please review and merge the pull requests, There are some features I need to use in my web project.

DieterHolvoet added a commit to DieterHolvoet/toastify-js that referenced this pull request Dec 11, 2022
@DieterHolvoet
Copy link

DieterHolvoet commented Dec 11, 2022

If #112 gets merged, we'll have to make sure to restart the progress bar animation after re-focusing the page. I already wrote the code, but one of two PR's will have to be merged before we can add that.

DieterHolvoet added a commit to DieterHolvoet/toastify-js that referenced this pull request Dec 11, 2022
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

Successfully merging this pull request may close these issues.

None yet

3 participants