fisheye-menu

1.0.0 • Public • Published

FISHEYE-MENU by @Wasiak

Interface with icons geting bigger when cursor is closer to icon horizontal center point

DEMO

screen

Pure JS, no jQuery.

Add class '.fisheye-menu' to ul with images in li's

<ul class='fisheye-menu'>
    <li>
      <a href=''>
        <img src='images/Legia.png'>
      </a>
    </li>
    ...
</ul>    

Run a function and enjoy your fisheye menu. Possibility to set your own icon grow ratio and limit of icon reaction.

fisheyeMenu({
    growRatio: 1.8,
    verticalLimit: 10,
    horizontalLimit: 1.5
});

setable options:

  • growRatio - ratio of new size to default
  • verticalLimit - vertical limit of icon reaction [px]
  • horizontalLimit - horizontal limit of reaction by single icon [icon.width ratio]

screen2

Efect with custom options:

  • growRatio: 2.8,
  • horizontalLimit: 2.5

Readme

Keywords

none

Package Sidebar

Install

npm i fisheye-menu

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • wasiak