Skip to content

Commit

Permalink
docs: initial readme
Browse files Browse the repository at this point in the history
  • Loading branch information
danieIabel committed Feb 12, 2023
1 parent 59f1cd9 commit 279e6d3
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 3 deletions.
33 changes: 32 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,32 @@
# imagehover
# ImageHover

With this library, developers can enhance the visual appeal of their projects by adding animated transitions to their images when users hover over them. As an open-source project, the library is free to use, modify, and distribute under certain licensing conditions.

## Install

### npm

```
npm i @zkreations/imagehover
```

### cdn

```html
<link href="https://cdn.jsdelivr.net/npm/@zkreations/imagehover@1/main.min.css" rel="stylesheet"/>
```

## Basic Usage

After including the library in your project, you just have to use the following HTML structure, replacing ``img-fade`` with an effect that you can copy from the [demonstration page](https://zkreations.github.io/imagehover/):

```html
<figure class="img-fade">
<img src="example.jpg">
<figcaption>Text here</figcaption>
</figure>
```

## License

**imagehover.css** is licensed under the MIT License
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "imagehover",
"name": "@zkreations/imagehover",
"version": "1.0.0",
"description": "Open source pure CSS hover effect library for images",
"main": "main.min.css",
Expand Down Expand Up @@ -36,5 +36,9 @@
"nodemon": "^2.0.20",
"npm-run-all": "^4.1.5",
"sass": "^1.58.0"
}
},
"directories": {
"test": "test"
},
"dependencies": {}
}

0 comments on commit 279e6d3

Please sign in to comment.