Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jinjor/elm-inline-hover

An utility for using :hover by inline style
https://github.com/jinjor/elm-inline-hover

elm elm-inline-hover hover ui

Last synced: about 1 month ago
JSON representation

An utility for using :hover by inline style

Awesome Lists containing this project

README

        

# DEPRECATED

This library is only available for Elm 0.18 or less.

I'm not going to port this library for 0.19 for some reasons.

- The implementation used in this library is not allowed in 0.19 world.
- This is a kind of hack! (not good for Elm ecosystem in the long run)
- I'm not using this now, just using CSS.

# elm-inline-hover

[![Build Status](https://travis-ci.org/jinjor/elm-inline-hover.svg)](https://travis-ci.org/jinjor/elm-inline-hover)

An utility for using :hover by inline style.

## How to use

Just insert `hover [("whatever", "styles"), ("you", "like")]` before Html nodes.

```elm
import InlineHover exposing(hover)

main =
ul []
[ hover styles li [] [ text "Hello" ]
, hover styles li [] [ text "World" ]
]

styles =
[("background", "#abd")]
```

That's it!

## License

BSD3