-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from jwanner83/develop
fixing readme
- Loading branch information
Showing
2 changed files
with
3 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ A experimental, dependency free script that let elements follow your cursor with | |
|
||
## Usage | ||
1. Include the `follow.min.js` script to your project | ||
2. Add the `data-follow` attribute to the `position: absolute` elements which you want to follow the cursor | ||
2. Add the `data-follow` attribute to elements which you want to follow the cursor | ||
3. Set the factor on how big they should follow like so `data-follow="100"` (higher equals less movement, if you | ||
leave it empty, it is set to 10. | ||
|
||
|
@@ -13,7 +13,7 @@ leave it empty, it is set to 10. | |
2. `<script src"node_modules/follow-js/dist/follow.min.js"></script>` | ||
|
||
### unpkg | ||
1. `<script src="https://unpkg.com/[email protected].1/dist/follow.min.js"></script>` | ||
1. `<script src="https://unpkg.com/[email protected].2/dist/follow.min.js"></script>` | ||
|
||
## Options | ||
### Dynamically add new elements | ||
|
@@ -28,9 +28,6 @@ stay at the exact position on the page as before but will correctly follow the c | |
if you would like to have a special styling for those. | ||
|
||
## Restriction | ||
### position absolute | ||
Currently, the script only works on `position: absolute` elements. | ||
|
||
### transition | ||
In the current state, the script won't work properly with a transition on the element. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters