123

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <div class="box">
	<div class="logo">

		<div class="logo-border"></div>
		<div class="logo-circle"></div>
		<div class="logo-dot"></div>

	</div>
</div>
            
          
!
            
              *
	-webkit-box-sizing: border-box
	-moz-box-sizing: border-box
	box-sizing: border-box
	&:before, &:after
		-webkit-box-sizing: border-box
		-moz-box-sizing: border-box
		box-sizing: border-box

// CSS Анимация: урок (НАЧАЛО)

/* Параметры логотипа, цвета */
$origin: 135deg
$color1: #5335CF
$color2: #DE005E
$color3: #F66E48

$box_h: 200px
$view_h: $box_h * 10

$duration: 5s

.box
	height: $box_h
	width: $box_h
	overflow: hidden
	border-radius: 35px
	position: absolute
	left: 50%
	top: 50%
	margin-top: -$box_h/2
	margin-left: -$box_h/2
	&:after
		position: relative
		content: ''
		display: block
		top: 0
		left: 0
		width: 100%
		height: $view_h
		background: linear-gradient($origin, $color1 0%, $color2 25%, $color3 50%, $color2 75%, $color1 100% )
		animation: animatebg $duration*2 infinite linear

@keyframes animatebg
	0%
		top: 0
	50%
		top: $box_h - $view_h
	100%
		top: 0

.logo
	> div
		position: absolute
		top: 50%
		left: 50%
		border: 9px #fff solid
		z-index: 2
		&.logo-dot
			border: 7px #fff solid
			border-radius: 10em
			right: 23%
			top: 23%
			left: auto
	&-border
		margin-top: -37%
		margin-left: -37%
		border-radius: 10em
		width: 74%
		height: 74%
	&-circle
		margin-top: -24%
		margin-left: -24%
		border-radius: 10em
		width: 48%
		height: 48%

@keyframes animatebox
	0%
		transform: scale(0)
		border-radius: 35px
	2.5%
		transform: scale(1.1)
		border-radius: 10em
	5%
		transform: scale(1)
		border-radius: 35px
	96%
		transform: scale(1)
		border-radius: 35px
	98%
		transform: scale(1.1)
		border-radius: 10em
	100%
		transform: scale(0)

@keyframes animateborder
	0%
		border-radius: 10em
		transform: scale(0)
		opacity: 0
	2%
		opacity: 0
	18%
		border-radius: 35px
		transform: scale(1)
		opacity: 1
	90%
		border-radius: 35px
		transform: scale(1)

@keyframes animatecircle
	0%
		transform: scale(0)
		opacity: 0
	5%
		transform: scale(0)
		opacity: 0
	10%
		transform: scale(1.3)
		opacity: 1
	15%
		transform: scale(1)
	95%
		transform: scale(1)
		background-color: transparent
	97%
		transform: scale(1.2)
		background-color: #ffffff
	100%
		transform: scale(1)

@keyframes animatedot
	0%
		opacity: 0
	20%
		opacity: 0
	25%
		opacity: 1
	75%
		opacity: 1
	100%
		opacity: 0

.box
	animation: animatebox $duration*2 infinite alternate

.logo-border
	animation: animateborder $duration infinite alternate

.logo-circle
	animation: animatecircle $duration infinite alternate

.logo-dot
	animation: animatedot $duration infinite normal

// CSS Анимация: урок (КОНЕЦ)

            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console