Chunks
Editor's choice
Latest chunks
Popular
New chunk
Login
Register
Chunk options
CSS
JS
Share
Full page
Fork
Auto-run JS
Run
Save
×
Tags
3d
accordion
admin
admin dashboard
admin interface
ajax
alert
android
angularjs
animate
animated
animation
append
apple
audio
backbonejs
background
badges
blog
blur
bootstrap
border
box-shadow
button
buttons
calendar
canvas
caption
carousel
checkbox
checkout
chrome
clock
cloth
cms
color
contact
controls
css animation
css only
css3
d3js
demo
design
dribbble
dropdown
ecommerce
effect
emberjs
facebook
flat
flat design
flexbox
flip
footer
form
forms
gallery
game
gradient
grid
gsap
header
hover
html5
icon fonts
icons
image
image slider
images
input
ionic
ios7
iphone
jquery
jQuery plugin
keyframes
layout
layouts
light
lightbox
list
lists
loader
loading
login
logo
magnific-popup
maps
masonry
menu
messages
mobile
modal
mouse
nav
navbar
navigation
panel
parallax
particles
payment
physics
plugin
popup
profile
progress bar
pure css
radio
registration
responsive
rwd
scroll
search
select
shadow
shop
sidebar
signup
simple
slide
slider
slideshow
social
spinner
status
svg
switch
tabbable
table
tabs
text
thumbnails
toggle
toolbar
transform
transition
twitter
typography
ui
user
user interface
webkit
Description
CSS
Bootstrap 3.1.1
Bootstrap 3.0.1
Bootstrap 2.3.2
Foundation 5.2.2
Foundation 4.3.2
Font Awesome 4.0.3
Animate.css 3.1.0
Pure 0.4.2
Add external CSS library
JS
Jquery 2.1.0
Jquery 2.0.0
Jquery 1.11.0
Jquery 1.9.0
Jquery 1.8.0
Jquery 1.7.0
Jqueryui 1.10.4
Jqueryui 1.9.2
Jqueryui 1.8.24
Bootstrap 3.1.1
Bootstrap 3.0.0
Bootstrap 2.3.2
Foundation 5.2.2
Dojo 1.9.3
Dojo 1.8.6
Dojo 1.7.5
MooTools 1.4.5
MooTools 1.3.2
AngularJS 1.2.26
EmberJs 1.5.0
BackboneJs 1.1.2
Prototype 1.7.1.0
Prototype 1.6.1.0
ExtCore 3.1.0
Add external JS library
Share link
Full page
<button type="button" class="btn btn-info btn-arrow-right " id="div1">Info</button> <button type="button" class="btn btn-warning btn-arrow-right" id="div2">Warning</button> <button type="button" class="btn btn-danger btn-arrow-right" id="div3">Danger</button>
HTML
body { /* just for this demo. */ padding: 30px; } .btn { /* just for this demo. */ margin-top: 5px; } .btn-arrow-right, .btn-arrow-left { position: relative; padding-left: 18px; padding-right: 18px; } .btn-arrow-right { padding-left: 36px; } .btn-arrow-left { padding-right: 36px; } .btn-arrow-right:before, .btn-arrow-right:after, .btn-arrow-left:before, .btn-arrow-left:after { /* make two squares (before and after), looking similar to the button */ content:""; position: absolute; top: 5px; /* move it down because of rounded corners */ width: 22px; /* same as height */ height: 22px; /* button_outer_height / sqrt(2) */ background: inherit; /* use parent background */ border: inherit; /* use parent border */ border-left-color: transparent; /* hide left border */ border-bottom-color: transparent; /* hide bottom border */ border-radius: 0px 4px 0px 0px; /* round arrow corner, the shorthand property doesn't accept "inherit" so it is set to 4px */ -webkit-border-radius: 0px 4px 0px 0px; -moz-border-radius: 0px 4px 0px 0px; } .btn-arrow-right:before, .btn-arrow-right:after { transform: rotate(45deg); /* rotate right arrow squares 45 deg to point right */ -webkit-transform: rotate(45deg); -moz-transform: rotate(45deg); -o-transform: rotate(45deg); -ms-transform: rotate(45deg); } .btn-arrow-left:before, .btn-arrow-left:after { transform: rotate(225deg); /* rotate left arrow squares 225 deg to point left */ -webkit-transform: rotate(225deg); -moz-transform: rotate(225deg); -o-transform: rotate(225deg); -ms-transform: rotate(225deg); } .btn-arrow-right:before, .btn-arrow-left:before { /* align the "before" square to the left */ left: -11px; } .btn-arrow-right:after, .btn-arrow-left:after { /* align the "after" square to the right */ right: -11px; } .btn-arrow-right:after, .btn-arrow-left:before { /* bring arrow pointers to front */ z-index: 1; } .btn-arrow-right:before, .btn-arrow-left:after { /* hide arrow tails background */ background-color: white; }
CSS
$(document).ready(function(){ /* $("button").click(function(){*/ $("#div1").fadeIn(); $("#div2").fadeIn("slow"); $("#div3").fadeIn(3000); /*var div = $("div1"); div.animate({opacity: '0.4'}, "slow");*/ /* });*/ });
JS
Loading....
Preview
×
Sign In
Register
Sign In
Login with Google
Sign In
Join CodeChunk
It's free.
Join with Google