Skip to content

Commit 0bb8fad

Browse files
committed
support border-radius
1 parent 5f8cef8 commit 0bb8fad

File tree

3 files changed

+22
-6
lines changed

3 files changed

+22
-6
lines changed

demo/js/jquery.sliphover.min.js

+8-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/jquery.sliphover.js

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
/**
2-
*sliphover v2.0.0
3-
*require jquery 1.7+
4-
* wayou June 24, 2014
5-
*for more info pls visit :https://github.com/wayou/SlipHover
2+
* sliphover v2.0.1
3+
* require jquery 1.7+
4+
* wayou June 24, 2014,
5+
* MIT License
6+
* for more info pls visit :https://github.com/wayou/SlipHover
67
*/
78

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

src/jquery.sliphover.min.js

+8-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)