Welcomer.js - Slick welcome bars for your pages
With Welcomer.js you get a simple solution to embed a customizable & slick bar on your webpage, to welcome people to your site or introduce new features to your customers. All of that without polluting your DOM.
Table of Contents
Information
Size: Welcomer.js takes < 1kb gzipped.
Usage
Welcomer.js is simple to use and does not require a lot of markup:
;let welcomer = ;
Window < 750px Say hello to Welcomer.js Learn more View on GitHub
Note: You can omit the .welcomer--close
div, if you don't want your welcomer to be closeable manually. Elements with the welcomer--mobile
class are also optional.
Functions
// Shows welcomerwelcomer; // Hides welcomerwelcomer; // Hides welcomer in 5 seconds unless it is hoveredwelcomer;
Options
You can pass an options hash when constructing new objects from the Welcomer
class:
autoclose
Milliseconds after which the welcomer automatically disappears. Accepts an integer orfalse
. Defaults tofalse
.delay
Milliseconds after which welcomer opens. Accepts an integer. Defaults to1000
.
Styles
You can find the project's sass
file under the root directory. If you want to modify it to integrate Welcomer.js better into your site, feel free to download and edit it. Then embed the edited version on your site.
You can change the mobile breakpoint by setting the $welcomer--mobile
variable before importing Welcomer.js.
To Do
Here is the full list of current projects.
To propose your ideas, initiate the discussion by adding a new issue.
Contributing
We hope that you will consider contributing to Welcomer.js. Please read this short overview for some information about how to get started:
Learn more about contributing to this repository, Code of Conduct
Contributors
Give the people some ❤️ who are working on this project. See them all at:
https://github.com/jonhue/welcomer.js/graphs/contributors
Semantic Versioning
Welcomer.js follows Semantic Versioning 2.0 as defined at http://semver.org.
License
MIT License
Copyright (c) 2017 Jonas Hübotter
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.