Skip to content

Commit

Permalink
support border-radius
Browse files Browse the repository at this point in the history
  • Loading branch information
wayou committed Jun 24, 2014
1 parent 5f8cef8 commit 0bb8fad
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 6 deletions.
9 changes: 8 additions & 1 deletion demo/js/jquery.sliphover.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 6 additions & 4 deletions src/jquery.sliphover.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
/**
*sliphover v2.0.0
*require jquery 1.7+
* wayou June 24, 2014
*for more info pls visit :https://github.com/wayou/SlipHover
* sliphover v2.0.1
* require jquery 1.7+
* wayou June 24, 2014,
* MIT License
* for more info pls visit :https://github.com/wayou/SlipHover
*/

;(function($, window, document, undefined) {
Expand Down Expand Up @@ -81,6 +82,7 @@
overflow: 'hidden',
top: top,
left: left,
borderRadius:$element.css('border-radius'),//in case the target has a round border, this will make the overlay more nicer
zIndex: zIndex == +zIndex ? (zIndex + 1) : 999 // if the z-index of the target is not number then use 999
});

Expand Down
9 changes: 8 additions & 1 deletion src/jquery.sliphover.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0bb8fad

Please sign in to comment.