Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource


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


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.


Save Automatically?

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.


                <div class="send-button">
 <span class="text">Отправить</span>
  <span class="icon-wrapper">
  	<span class="icon-1 ion-paper-airplane"></span>
		<span class="icon-2 ion-checkmark"></span>


                // helper
	box-sizing: border-box
	font-size: 62.5%
	overflow: hidden

	padding: 0
	margin: 0
	-webkit-font-smoothing: antialiased
	-moz-osx-font-smoothing: grayscale
	box-sizing: inherit
	&::after, &::before
		box-sizing: inherit

	position: absolute
	top: 50%
	left: 50%
	transform: translate(-50%, -50%)

=size($w, $h)
	width: $w
	height: $h

=font-size($sizeValue: 1.6)
	font-size: ($sizeValue * 10) + px
	font-size: $sizeValue + rem

// colors
$blue: #007bff
$indigo: #6610f2
$purple: #6f42c1
$pink: #e83e8c
$red: #dc3545
$orange: #fd7e14
$yellow: #ffc107
$green: #28a745
$teal: #20c997
$cyan: #17a2b8
$white: #fff
$gray: #6c757d
$gray-dark: #343a40
$primary: #007bff
$secondary: #6c757d
$success: #28a745
$info: #17a2b8
$warning: #ffc107
$danger: #dc3545
$light: #f8f9fa
$dark: #343a40

// animations
@keyframes icon-animation
		transform: rotate(0deg) scale(1)
		transform: rotate(-120deg) scale(4)
		transform: rotate(-240deg) scale(4)
		transform: rotate(-360deg) scale(1)

// animation related classes
	animation: icon-animation 1.5s linear
	transition: color 0.6s ease
	color: $green
	transform: translate(-50%, calc(-50% + 1px)) !important
	transition: transform .15s ease
	animation: input-shadow .15s ease
	box-shadow: 0 3px 3px 0 rgba(0, 0, 0, 0.14), 0 1px 7px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -1px rgba(0, 0, 0, 0.2)
	> .text
		transform: translateY(1px)
		transition: transform .15s ease-out
// corpus	

		@extend %center
		background-color: $secondary
		+size(250px, 45px)
		border-radius: 2px
		box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12), 0 2px 4px -1px rgba(0, 0, 0, 0.3)
		cursor: pointer
		user-select: none
		transition: transform .15s
		text-shadow: 1px 2px 1px rgba(77,	9,	36 ,0.6)
			position: absolute
			left: 10px
			letter-spacing: 1px
			line-height: 45px
			color: $light
			text-transform: uppercase
			position: absolute
			right: -65px
			bottom: -10px
			+size(200px, 200px)	
			border-radius: 50%	
			line-height: 45px	
			color: $light
				position: absolute
				left: 100px
				bottom: 10px
				transition: color 0.6s ease
				transform: rotate(15deg)
				opacity: 1
				opacity: 0



                $(() => {
	var $sendBtn = $('.send-button'),
			$iWrapper = $('.icon-wrapper'),
			$i1 = $('.icon-1'),
			$i2 = $('.icon-2');
	function animationEvent() {
		var t,
				el = document.createElement('fakeelement');

		var animations = {
			animation: 'animationend',
			OAnimation: 'oAnimationEnd',
			MozAnimation: 'animationend',
			WebkitAnimation: 'webkitAnimationEnd'

		for (t in animations) {
			if ([t] !== undefined) {
				return animations[t];

	$sendBtn.on('click', e => {
		$iWrapper.css('color', '#66bb6a');
		$i1.fadeTo(300, 0);
		$i2.fadeTo(300, 1);		

	$sendBtn.on(animationEvent(), e => {
		if (e.originalEvent.animationName == 'input-shadow') {

	$iWrapper.on(animationEvent(), e => {
		if (e.originalEvent.animationName == 'icon-animation') {
			setTimeout(reset, 1200);

	function reset() {
		$i1.fadeTo(250, 1);
		$i2.fadeTo(250, 0);
		$iWrapper.css('color', '#f8f9fa');
}); // end of document ready