Created
May 28, 2013 07:35
-
-
Save Shelob9/5661092 to your computer and use it in GitHub Desktop.
CSS to make the Orbit slider in Foundation 4 less obtrusive to content, but a little more noticeable when hovering over the arrows, and jQuery to make the arrows flash on mouseover over .orbit-container so the user notices it's a slider.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $('.orbit-container').hover(function () { | |
| $('.orbit-prev').fadeOut("medium"); | |
| $('.orbit-next').fadeOut("medium"); | |
| $('.orbit-prev').fadeIn("medium"); | |
| $('.orbit-next').fadeIn("medium"); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .orbit-prev, .orbit-next {border:#2ba6cb 1px solid;} | |
| .orbit-prev:hover, .orbit-next:hover {border:#2ba6cb 4px solid;} | |
| .orbit-prev:hover {border-left:none} .orbit-next:hover {border-right:none} | |
| .orbit-container .orbit-slides-container>* {padding:2px 4px 2px 4px;} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment