saytum-notice

1.0.1 • Public • Published

Saytum notice

Using

Install the library

$ yarn add saytum-notice

Import the library and create an instance with settings

import SaytumNotice from 'saytum-notice'; 
 
new Notice({
  classNotice: 'notice',
  classActive: 'active',
  noticeDelay: 2100,
});

Add styles.

The observer monitors content changes inside the notification block and adds an active class.

Use the static method Notice.changeText() to change the text.

Notice.changeText({ selector = '.notice', text }) 

Readme

Keywords

none

Package Sidebar

Install

npm i saytum-notice

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

3.44 kB

Total Files

5

Last publish

Collaborators

  • saytum-osp