Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <div id="div_1">
	 <a href="#" class="shiny_button" id="A_2">Shiny Button</a>
</div>
http://divicio.us/effects/add-shiny-hover-effect-to-divi-button/#
              
            
!

CSS

              
                
#div_1 {
	background-color: #012839;

	text-align: center;
}
.shiny_button {
    bottom: 0px;
    box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px;
    box-sizing: border-box;
    color: rgb(0, 199, 236);
    display: inline-block;
    height: 119px;
    left: 0px;
    overflow-wrap: break-word;
    position: relative;
    right: 0px;
    text-align: center;
    text-decoration: none solid rgb(0, 199, 236);
    top: 0px;
    /*width: 402.938px;*/
    word-wrap: break-word;
    column-rule-color: rgb(0, 199, 236);
    -webkit-font-smoothing: antialiased;
    -webkit-locale: "en-US";
    perspective-origin: 201.469px 59.5px;
    -webkit-text-decorations-in-effect: none;
    -webkit-text-emphasis-color: rgb(0, 199, 236);
  
    transform-origin: 201.469px 59.5px;
    caret-color: rgb(0, 199, 236);
    border: 2px solid rgb(0, 199, 236);
    border-radius: 5px 5px 5px 5px;
    font: normal normal 500 normal 50px / 85px "Open Sans", Arial, sans-serif;
    margin: 100px 0px;
    outline: rgb(0, 199, 236) none 0px;
    overflow: hidden;
    padding: 15px 50px;
    transition: all 0.2s ease-in 0s;
    -webkit-border-after: 2px solid rgb(0, 199, 236);
    -webkit-border-before: 2px solid rgb(0, 199, 236);
    -webkit-border-end: 2px solid rgb(0, 199, 236);
    -webkit-border-start: 2px solid rgb(0, 199, 236);
    -webkit-transition: all 0.2s ease-in 0s;
    -webkit-transform-origin: 201.469px 59.5px;
}/*#A_2*/



.shiny_button:before {
    bottom: 8.0625px;
    box-shadow: rgb(255, 255, 255) 0px 0px 60px 20px;
    color: rgb(0, 199, 236);
    content: '""';
    display: block;
    height: 98.8906px;
    left: 0px;
    opacity: 0;
    overflow-wrap: break-word;
    position: absolute;
    right: 430.938px;
    text-align: center;
    text-decoration: none solid rgb(0, 199, 236);
    top: 8.04688px;
    width: 0px;
    word-wrap: break-word;
    column-rule-color: rgb(0, 199, 236);
    -webkit-font-smoothing: antialiased;
    -webkit-locale: "en-US";
    perspective-origin: 0px 49.4375px;
    -webkit-text-decorations-in-effect: none;
    -webkit-text-emphasis-color: rgb(0, 199, 236);
    -webkit-text-fill-color: rgb(0, 199, 236);
    -webkit-text-stroke-color: rgb(0, 199, 236);
    transform: matrix(1, 0, -0.36397, 1, 0, 0);
    transform-origin: 0px 49.4375px;
    caret-color: rgb(0, 199, 236);
    background: rgb(255, 255, 255) none repeat scroll 0% 0% / auto padding-box border-box;
    border: 0px none rgb(0, 199, 236);
    font: normal normal 500 normal 32px / 32px "Open Sans", Arial, sans-serif;
    margin: 0px 0px 0px -32px;
    outline: rgb(0, 199, 236) none 0px;
    transition: all 0.2s ease 0s;
    -webkit-border-after: 0px none rgb(0, 199, 236);
    -webkit-border-before: 0px none rgb(0, 199, 236);
    -webkit-border-end: 0px none rgb(0, 199, 236);
    -webkit-border-start: 0px none rgb(0, 199, 236);
    -webkit-transition: all 0.2s ease 0s;
    -webkit-transform-origin: 0px 49.4375px;
}/*#A_2:before*/

/* Start shiny hover effect*/
.shiny_button {
  overflow: hidden;
  box-shadow: 0 0 0 0 transparent;
  -webkit-transition: all 0.2s ease-in;
  -moz-transition: all 0.2s ease-in;
  transition: all 0.2s ease-in;
}
.shiny_button:hover {
  box-shadow: 0 0 30px 5px rgba(0, 199, 236, 0.5); /* set your color here 
       (it should be the same as the button bg color on hover but with 0.5 opacity)
       and play with 30px and 5px values to adjust box-shadow */
  -webkit-transition: all 0.2s ease-out;
  -moz-transition: all 0.2s ease-out;
  transition: all 0.2s ease-out;
}
.shiny_button:hover:before {
  -webkit-animation: shine 0.5s 0s linear;
  -moz-animation: shine 0.5s 0s linear;
  animation: shine 0.5s 0s linear;
}
.shiny_button:active {
  box-shadow: 0 0 0 0 transparent;
  -webkit-transition: box-shadow 0.2s ease-in;
  -moz-transition: box-shadow 0.2s ease-in;
  transition: box-shadow 0.2s ease-in;
}
.shiny_button:before {
  content: '';
  display: block;
  width: 0px;
  height: 86%;
  position: absolute;
  top: 7%;
  left: 0%;
  opacity: 0;
  background: #ffffff;
  box-shadow: 0 0 60px 20px #ffffff; /*play with 60px and 20px values to adjust box-shadow*/
  -webkit-transform: skewX(-20deg);
  -moz-transform: skewX(-20deg);
  -ms-transform: skewX(-20deg);
  -o-transform: skewX(-20deg);
  transform: skewX(-20deg);
}
 
.shiny_button:after {
   line-height: inherit !important;
}
 
@-webkit-keyframes shine {
  from {
    opacity: 0;
    left: 0%;
  }
  50% {
    opacity: 1;
  }
  to {
    opacity: 0;
    left: 100%;
  }
}
@-moz-keyframes shine {
  from {
    opacity: 0;
    left: 0%;
  }
  50% {
    opacity: 1;
  }
  to {
    opacity: 0;
    left: 100%;
  }
}
@keyframes shine {
  from {
    opacity: 0;
    left: 0%;
  }
  50% {
    opacity: 1;
  }
  to {
    opacity: 0;
    left: 100%;
  }
}
.shiny_button::before,.shiny_button::after {
	position: absolute;
	margin-left: -1em;
	opacity: 0;
	font-size:50px;
	line-height: 1em;
	content: "";
	-webkit-transition: all 0.2s;
	-moz-transition: all 0.2s;
	transition: all 0.2s;
}
/* End shiny hover effect*/
.shiny_button::after {
	line-height: inherit !important;
}
.shiny_button::after {
	font-family:"Ionicons" !important;
	font-weight: normal;
	font-style: normal;
	font-variant: normal;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	line-height: 1;
	text-transform: none;
	speak: none;
}




.shiny_button:hover {
    color: #ffffff !important;
    background: #00c7ec !important;
    border-radius: 5px;
    letter-spacing: 0px;
    padding-left: 0.7em;
   padding-right: 2em;
}

.shiny_button:hover {
	box-shadow: 0 0 30px 5px rgba(0, 199, 236, 0.5);
	-webkit-transition: all 0.2s ease-out;
	-moz-transition: all 0.2s ease-out;
	transition: all 0.2s ease-out;
}
.shiny_button:active {
	box-shadow: 0 0 0 0 transparent;
	-webkit-transition: box-shadow 0.2s ease-in;
	-moz-transition: box-shadow 0.2s ease-in;
	transition: box-shadow 0.2s ease-in;
}
.shiny_button::after {
	font-size:50px;
	color: #ffffff;
	opacity: 0;
	display: inline-block;
}
.shiny_button:hover::after {
	opacity: 1;
}
.shiny_button:hover::after {
	margin-left: 10px;
	opacity: 1;
}
.shiny_button:hover {
	color: #ffffff !important;
	letter-spacing: 0px;
}
.shiny_button:hover::after {
	opacity: 1;
}

.shiny_button:after {
    bottom: 15px;
    color: rgb(255, 255, 255);
    /*content: '>';*/
  content: "\f125";
    display: inline-block;
    height: 85px;
   /* left: 348.922px;*/
    opacity: 0;
    overflow-wrap: break-word;
    position:absolute;
    
    speak: none;
    text-align: center;
    text-decoration: none solid rgb(255, 255, 255);
    top: 15px;
    width: 80px;
    word-wrap: break-word;
    column-rule-color: rgb(255, 255, 255);
    -webkit-font-smoothing: antialiased;
    -webkit-locale: "en-US";
    perspective-origin: 40px 42.5px;
    -webkit-text-decorations-in-effect: none;
    -webkit-text-emphasis-color: rgb(255, 255, 255);
    -webkit-text-fill-color: rgb(255, 255, 255);
    -webkit-text-stroke-color: rgb(255, 255, 255);
    transform-origin: 40px 42.5px;
    caret-color: rgb(255, 255, 255);
    border: 0px none rgb(255, 255, 255);
    /*font: normal normal normal normal 80px / 85px Ionicons;*/
    margin-left:-10em;
    outline: rgb(255, 255, 255) none 0px;
    transition: all 0.2s ease 0s;
    -webkit-border-after: 0px none rgb(255, 255, 255);
    -webkit-border-before: 0px none rgb(255, 255, 255);
    -webkit-border-end: 0px none rgb(255, 255, 255);
    -webkit-border-start: 0px none rgb(255, 255, 255);
    -webkit-transition: all 0.2s ease 0s;
    -webkit-transform-origin: 40px 42.5px;
}/*#A_2:after*/
              
            
!

JS

              
                
              
            
!
999px

Console