Giter VIP home page Giter VIP logo

li1n-toast's Introduction

Li1n-Toast

Preview:

Screenshot 1

Description:

It is a simple framework-agnostic JavaScript plugin used for displaying customizable, toast-like, non-blocking, crossfading notification popups with different types on on the different positions of screen.

How to use it:

Import the main JavaScript file ‘toast.js’ into the html document.

<script src="js/toast.js"></script>

Create a basic toast message and specify title, content, variant, position, a container element to be placed in, close timeout, enable close on click.

let toast = new Toast({
        title: "Hi, from Toast",
        content: "Good job",
        variant: "danger",
        position: "bottom-right",
        rootElement: ".container",
        autoHideDuration: 3000,
        closeOnClick: true,
      });

Show the toast message. In this example, the toast message will auto dismiss after 3 seconds.

toast.showToast();

The default CSS for the toast message.

Demo

🔗 https://s-any-ok.github.io/Li1n-Toast/index.html

li1n-toast's People

Contributors

s-any-ok avatar

Stargazers

Maksym Zavalniuk avatar

Watchers

 avatar

li1n-toast's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.