Pen Settings

HTML

CSS

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

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

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.

HTML

              
                <div class="qt">
	<div class="qt__frame">
		<div class="qt__face">
			<div class="qt__hand-shadow-wrapper">
				<div class="qt__hand-shadow"></div>
			</div>
			<div class="qt__hand">
				<div class="qt__hand-texture"></div>
			</div>
		</div>
	</div>
</div>
              
            
!

CSS

              
                *
	border: 0
	box-sizing: border-box
	margin: 0
	padding: 0

\:root
	font-size: calc(16px + (24 - 16) * (100vw - 320px) / (1280 - 320))

body
	background: rgb(115,122,140)
	display: grid
	font: 1em/1.5 sans-serif
	place-items: center
	height: 100vh

$startAngle: -45deg
$dur: 60s
$timing: cubic-bezier(0.8,0,0.2,1)
$playState: running

.qt
	background: linear-gradient(rgb(79,83,87),rgb(0,0,0))
	border-radius: 5em
	box-shadow: 0 0 0.75em rgba(0,0,0,0.375)
	font-size: 0.75em
	padding: 1.6em
	width: 20em
	height: 20em
	&__frame, &__face, &__hand-shadow-wrapper
		border-radius: 50%
	&__frame, &__hand-texture
		background: radial-gradient(48% 48% at 50% 50%,rgb(201,217,243),rgba(255,255,255,0) 50%), radial-gradient(60% 37.5% at 50% 37.5%,rgb(255,255,255) 25%,rgba(255,255,255,0) 50%), radial-gradient(18% 36% at 95% 50%,rgb(201,217,243) 50%,rgba(201,217,243,0)), linear-gradient(rgba(125,132,137,0) 45%,rgb(125,132,137) 54%), rgb(201,217,243)
		background-position: 50% 50%
		background-size: 23.8em 23.8em
	&__frame
		box-shadow: 0 0.25em 0.5em rgb(209,227,250) inset, 0 0 0.5em rgb(201,217,243) inset, 0 -0.25em 0.5em 0.25em rgb(125,132,137) inset, 0 0 1.5em rgba(201,217,243,0.47) inset, 1em -0.75em 1.5em rgba(201,217,243,0.33) inset
		padding: 3em
		width: 16.8em
		height: 16.8em
	&__face, &__hand-shadow-wrapper
		width: 10.8em
		height: 10.8em
	&__face
		background: linear-gradient(rgb(43,108,233) 10%,rgb(56,236,251) 90%)
		box-shadow: 0 0.25em 1.5em 0.1em rgb(22,0,151) inset, 0 0.25em 0.25em rgb(133,124,123), 0 -0.75em 1.5em 0.25em rgba(255,255,255,0.47)
		position: relative
	&__hand
		background: rgb(125,132,137)
		clip-path: polygon(0 0,3.2em 0,3.2em 11.9em,1.6em 13.5em,0 11.9em)
		height: 13.5em
		&, &:before, &:after, &-shadow, &-shadow-wrapper, &-texture
			position: absolute
		&, &-shadow, &-shadow-wrapper
			top: 50%
			left: 50%
		&, &:before, &:after, &-shadow
			width: 3.2em
		&, &-shadow
			animation: hand $dur $timing infinite $playState
			border-radius: 1.6em 1.6em 0 0
			transform: translate(-1.6em,-1.6em) rotate($startAngle)
			transform-origin: 1.6em 1.6em
		&, &-shadow-wrapper
			overflow: hidden
		&:before, &:after
			content: ""
			display: block
			z-index: 1
		&:before
			background: radial-gradient(45% 50% at 30% 55%,rgba(255,255,255,0.2),rgba(255,255,255,0)), linear-gradient(rgba(255,255,255,0) 3.5em,rgba(255,255,255,0.3))
			top: 8em
			height: 5.5em
		&:after
			background: linear-gradient(90deg,rgba(201,217,243,0) 2.9em,rgb(201,217,243))
			top: 9.7em
			height: 2.2em
		&-shadow
			box-shadow: 0 0 1em rgba(0,0,0,0.67)
			height: 7.5em
			&-wrapper
				transform: translate(-50%,-50%)
		&-texture
			animation: texture $dur $timing infinite $playState
			top: 1.6em
			left: 1.6em
			width: 23.8em
			height: 23.8em
			transform: translate(-50%,-50%) rotate(-$startAngle)

/* Animations */
@keyframes hand
	@for $r from 0 through 60
		#{100% / 60 * $r}
			transform: translate(-1.6em,-1.6em) rotate($startAngle + ($r / 60 * 360))

@keyframes texture
	@for $r from 0 through 60
		#{100% / 60 * $r}
			transform: translate(-50%,-50%) rotate(-$startAngle - ($r / 60 * 360))
              
            
!

JS

              
                
              
            
!
999px

Console