Giter Club home page Giter Club logo

codiify / ripple-notify Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 0.0 4.16 MB

Ripple notify is a sleek and efficient notification package designed to deliver subtle yet effective alerts across various digital platforms.

Home Page: https://codiify.github.io/ripple-notify/

License: ISC License

JavaScript 12.10% CSS 12.35% HTML 24.81% PHP 50.37% Blade 0.37%
alert message notification notify push push-notifications ripple seamless toast toast-message

ripple-notify's Introduction

npm version License: ISC Tweeting Support Server

Ripple notify is a sleek and efficient notification package designed to deliver subtle yet effective alerts across various digital platforms. Its intuitive design seamlessly integrates into web and mobile applications, providing unobtrusive notifications that capture user attention without disrupting workflow. Stay informed with Ripple notify's prompt and seamless communication.

Demo

ripple-notify-demo

Installation

You can install this package via npm:

npm i ripple-notify

Usage

After successful installation, you can import the package and use it in your project. You can customize the notification as per your need. You need a ripple.js to your project root folder to customize the notification globally. You can customize the timeout, animation speed, colors and many more.

File name must be ripple.js and the content should be like below:

export const RippleConfig = {
    animationSpeed: '0.5s',
    colorful: true,
    duration: 500,
    icon: true,
    position: 'bottom-right',
    progressBar: true,
    timeout: 3000,
    colors: {
        success: {
            backgroundColor: '#ECFDF3',
            color: '#008A2E',
            borderColor: '#D3FDE5',
            progressBarColor: '#008A2E',
        },
        error: {
            backgroundColor: '#FFF0F0',
            color: '#E60000',
            borderColor: '#FFE0E1',
            progressBarColor: '#E60000',
        },
        info: {
            backgroundColor: '#F0F8FF',
            color: '#0973DC',
            borderColor: '#D3E0FD',
            progressBarColor: '#0973DC',
        },
        warning: {
            backgroundColor: '#FFFCF0',
            color: '#DC7609',
            borderColor: '#FDF5D3',
            progressBarColor: '#DC7609',
        },
        default: {
            backgroundColor: '#FFFFFF',
            color: '#171717',
            borderColor: '#EDEDED',
            progressBarColor: '#171717',
        }
    }
};

Some of the options you can customize are:

  • timeout: Represents the time in milliseconds that the notification will be displayed. Default is 3000.

  • animationSpeed: Animation speed of the notification. Default is 0.5s.

  • duration: It will disappear after the duration. Default is 500.

  • colorful: If you want to show the colorful notification, you can set it to true. Default is false.

  • icon: If you don't want to show the icon, you can set it to false. Default is true.

  • position: You can customize the position of the notification. Available options are top-left, top-center, top-right, bottom-left, bottom-center, bottom-right.

  • progressBar: Progressbar displayed relatively true, false.

  • progressBarColor: You can customize the progress bar color.

  • onHover: When the mouse enters hover, it will stop, on the mouse leaves it will start again.

  • onClick: On click on the toaster, and it will be removed immediately.

Laravel Usage

To use in laravel based project, you need to include below code in your resources/app.js file.

import RippleNotify  from 'ripple-notify';

const ripple = RippleNotify;

window.ripple = ripple;

And then add the below code in your resources/app.css file.

@import "ripple-notify/styles.css";

HTML Usage

For normal html usage, you need to include the styles.css file in your project.

<link rel="stylesheet" href="node_modules/ripple-notify/styles.css">

Initialize the ripple in your project.

<script type="module">
    import RippleNotify from './node_modules/ripple-notify/index.js';

    const ripple = RippleNotify;

    window.ripple = ripple;
</script>

Documentation

Provide details about the functions, classes, or methods exposed by your package. Include parameters, return values, and usage examples. Check the documentation to get you started with the package here.

Release Notes

You can find the release note for the latest release here.

License

This project is licensed under the ISC License - see the LICENSE.md file for details.

Acknowledgments

Author

Tweeting Support Server

ripple-notify's People

Contributors

mdrubelrana avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

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.