未验证 提交 f7081136 编写于 作者: K Kamran Ahmed 提交者: GitHub

Add the "why"

上级 ea084c24
......@@ -33,6 +33,12 @@
For Usage and Examples, [have a look at demo](http://kamranahmed.info/driver)
## So, yet another tour library?
**No it is not**. Tours is just one of the many usecases. Driver.js can be used **at any place where you need some sort of overlay** for the page, some common usecases could be e.g. dimming the background when user is interacting with some component i.e. [the way Facebook does](https://i.imgur.com/Q3PzaKk.png) when you try to create a post, or you can use it as a focus shifter to bring user's attention to some component on page or maybe you can use it to simulate those "Turn off the Lights" widgets that you might have seen on video players online etc.
Driver.js is written in Vanilla JS, has zero dependencies and is highly customizable. It has several options allowing you to manipulate how it behaves and also provides you the hooks to manipulate the elements as they are highlighted about to be highlighted or deselected.
## Installation
You can install it using `yarn` or `npm`, whatever you prefer
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册