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 id="wrap"> 
			<img src="http://sevensprings.dothome.co.kr/img/6.jpg" alt="sting" />
		<p>
			You'll remember me when the west wind moves
			Upon the fields of barley
			You'll forget the sun in his jealous sky
			As we walk in fields of gold

			So she took her love
			For to gaze awhile
			Upon the fields of barley
			In his arms she fell as her hair came down
			Among the fields of gold

			Will you stay with me, will you be my love
			Among the fields of barley
			We'll forget the sun in his jealous sky
			As we lie in fields of gold

			See the west wind move like a lover so
			Upon the fields of barley
			Feel her body rise when you kiss her mouth
			Among the fields of gold
			I never made promises lightly
			And there have been some that I've broken
			But I swear in the days still left
			We'll walk in fields of gold
			We'll walk in fields of gold

			Many years have passed since those summer days
			Among the fields of barley
			See the children run as the sun goes down
			Among the fields of gold
			You'll remember me when the west wind moves
			Upon the fields of barley
			You can tell the sun in his jealous sky
			When we walked in fields of gold
			When we walked in fields of gold
			When we walked in fields of gold
		</p>
	</div>
              
            
!

CSS

              
                #wrap{*zoom:1}
#wrap:after{display:block;clear:both;content:''}
#wrap>img{float:left;margin-right:10px;border:1px solid black;}
              
            
!

JS

              
                $(document).on("click", "#wrap > img",function(){
			if ($(this).hasClass("active")){//현재로선 가상클래스의 개념이므로, 필수코드는 아님
				$(this).animate({"width":500},250);
				$(this).removeClass("active");
			}else{
				$(this).animate({"width":1000},500);
				$(this).addClass("active");
			}
		});
              
            
!
999px

Console