cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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.

Quick-add: + add another resource

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.

Quick-add: + add another resource

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.

            
              <p>
TweenMax.to('#wh', 1.0, { width: '10%', height: 150 });<br>
TweenMax.to('#xy', 1.0, { x: '-10%', y: 100 });<br>
TweenMax.to('#scale', 1.0, { scale: 1.2, rotation: 225 });<br>
TweenMax.to('#alpha', 1.5, { autoAlpha: 0.1 });<br>
TweenMax.to('#bg', 2.0, { backgroundColor: '#6A8CC7' });
</p>

<p class="note">
1:width / height:正の値、0、'**%'、'auto'で設定<br>
2:x軸移動 / y軸移動:正負の値、'**%'で設定<br>
3:拡大・縮小 / 回転:倍率、角度で設定<br>
4:透明度:0〜1の値で設定。autoAlphaの場合、値が0になると同時にvisibilityがhiddenになる<br>
5:背景色:カラーコード、rgbaで設定
</p>


<hr />

<div id="wh" class="obj">1:width / height</div>
<div id="xy" class="obj">2:x / y</div>
<div id="scale" class="obj">3:scale / rotation</div>
<div id="alpha" class="obj">4:alpha</div>
<div id="bg" class="obj">5:bgColor</div>
            
          
!
            
              .obj {
  position: relative;  
  margin: 20px;
  padding: 5px;
  width: 70px;
  height: 70px;
  float: left;
}

#wh { background: #44A5CB; }
#xy { background: #DA6272; }
#scale { background: #F9DB57; }
#alpha { background: #23AC0E; }
#bg { background: #B75C9D; }

/* text ----------- */
p { font-size: 80%; }
.note { font-size: 75%; color: rgba(0,0,0,0.8); }
            
          
!
            
              // width / height:正の値、0、'**%'、'auto'で設定
TweenMax.to('#wh', 1.0, { width: '10%', height: 150 }); // 

// x軸移動 / y軸移動:正負の値、'**%'で設定
TweenMax.to('#xy', 1.0, { x: '-10%', y: 100 }); // 

// 拡大・縮小 / 回転:倍率、角度で設定
TweenMax.to('#scale', 1.0, { scale: 1.2, rotation: 225 }); // 

// 透明度:0〜1の値で設定。autoAlphaの場合、値が0になると同時にvisibilityがhiddenになる
TweenMax.to('#alpha', 1.5, { autoAlpha: 0.1 }); // 

// 背景色:カラーコード、rgbaで設定
TweenMax.to('#bg', 2.0, { backgroundColor: '#6A8CC7' }); // 


            
          
!
999px
Loading ..................

Console