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="wrap">
	<div class="top">
		<h1>ScrollMagic Demo</h1>
		<p>스크롤매직 라이브러리 데모입니다.<br/><a href="" target="_blank">여기</a>에서 더 많은 예시를 확인할 수 있습니다.</p>
	<div class="main">
		<h2>What a wonderful!</h2>
		<div class="textWrap">
			<p class="text">Dolore occaecat cupidatat nostrud voluptate officia anim culpa minim in eiusmod eiusmod in. Esse magna excepteur est eiusmod excepteur laborum amet esse sint sit velit cupidatat excepteur. Aliquip magna dolore quis in tempor ipsum. Ad nostrud cupidatat ut do exercitation nulla ipsum culpa. Dolor laboris sunt voluptate nostrud. Cupidatat non sint est proident pariatur nulla. Aliqua reprehenderit ad do in ut deserunt sit.</p>
<p class="text">Amet aliquip incididunt exercitation et consequat sint laborum nulla. Excepteur qui ut cillum eu quis irure elit proident deserunt eiusmod consectetur. Amet occaecat et ex in dolore velit esse occaecat fugiat id et.</p>
		<div class="spacer"></div>
		<div class="trigger" id="trigger1">Trigger!</div>
		<div class="spacer"></div>
		<div id="animate1" class="icon">Hello</div>
		<div class="spacer"></div>
		<div class="spacer"></div>
		<div class="spacer"></div>
		<div class="spacer"></div>
		<div class="spacer"></div>
	<div class="footer"><a href=""></a></div>


                * {
	margin: 0;
	padding: 0;
	font-family: monospace;

body {

	background-color: #f8f8f8;

.top {
	padding: 120px 50px;
	border-bottom: 1px solid #e0e0e0;
	background-color: #fff;
	h1 {
		font-size: 70px;
	p {
		margin-top: 8px;
		font-size: 15px;
		line-height: 140%;

.main {
	margin-top: 120px;
	padding: 0 50px;
	h2 {
		font-size: 30px;
		margin-bottom: 20px;
		letter-spacing: 2px;
	.textWrap {
		padding-bottom: 30px;
		border-bottom: 1px solid #aaa;
	.spacer {
		height: 150px;
	.text {
		font-size: 14px;
		margin-bottom: 10px;
		line-height: 140%;
	.icon {
		width: 140px;
		height: 140px;
		color: #fff;
		font-size: 40px;
		line-height: 140px;
		text-align: center;
		background-color: #999;
		border-radius: 100%;

.trigger {
	width: 100%;
	height: auto;
	font-weight: bold;
	font-size: 20px;
	background-color: #bada77;

.footer {
	margin-top: 240px;
	padding: 0 50px;
	height: 40px;
	background-color: #222;
	a {
		display: block;
		line-height: 40px;
		font-family: monospace;
		letter-spacing: 1px;
		text-align: right;
		color: #fff;


	var controller = new ScrollMagic.Controller();
	var tween1 ='#animate1', 0.5, {
		backgroundColor: "#333333",
		scale: 2.5,
		rotation: 360,
		x: 130
	var scene = new ScrollMagic.Scene({
		triggerElement: "#trigger1",
		duration: "100%"
		name: "1"