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 is required to process package imports. If you need a different preprocessor remove all packages first.

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


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.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

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.


<!-- SVG SOURCE -->
    <svg height="0" width="0" style="position:absolute;margin-left: -100%;">
<g id="clock-icon">
  <rect id="minute-hand" transform="rotate(0 16 17)" x="15.386" y="6.464" width="1.227" height="11.439"/>
<rect id="hour-hand" transform="rotate(0 16 17)" x="15.386" y="10.291" width="1.227" height="7.626"/>
  <rect id="second-hand" transform="rotate(0 16 17)" x="15.88" y="7.46" fill="#EF4767" width="0.24" height="9.83"/>

<path d="M15.879,2.531c-8.14,0-14.739,6.599-14.739,14.739c0,8.14,6.599,14.739,14.739,14.739s14.739-6.6,14.739-14.739
	C30.618,9.13,24.02,2.531,15.879,2.531z M15.879,30.852c-7.511,0-13.6-6.089-13.6-13.6c0-7.511,6.089-13.601,13.6-13.601	c7.511,0,13.6,6.089,13.6,13.601C29.479,24.763,23.391,30.852,15.879,30.852z"/>
<rect x="24.794" y="28.95" transform="matrix(0.7071 0.7071 -0.7071 0.7071 28.9921 -10.8671)"  width="5.639" height="1.226"/>
<rect x="1.076" y="28.866" transform="matrix(-0.7071 0.7071 -0.7071 -0.7071 27.6973 47.4864)" width="5.876" height="1.227"/>
<path  d="M9.946,1.291c-1.044-0.812-2.353-1.3-3.778-1.3C2.761-0.009,0,2.752,0,6.158c0,1.425,0.488,2.733,1.3,3.778
	l0.524-0.524l0.002,0.002l7.859-7.859L9.684,1.553L9.946,1.291z M6.167,1.198c0.634,0,1.233,0.132,1.79,0.35L1.558,7.948
<path  d="M30.7,9.936C31.512,8.892,32,7.583,32,6.158c0-3.406-2.762-6.167-6.168-6.167
	c-1.425,0-2.733,0.488-3.777,1.3l0.524,0.524l-0.002,0.002l7.858,7.859l0.002-0.002L30.7,9.936z M30.793,6.158
<animateTransform type="rotate" xlink:href="#second-hand" repeatCount="indefinite" dur="1min" to="360 16 17" from="0 16 17" additive="sum" attributeName="transform">
<animateTransform type="rotate" xlink:href="#minute-hand" repeatCount="indefinite" dur="1h" to="360 16 17" from="0 16 17"  additive="sum" attributeName="transform">
<animateTransform  additive="sum" type="rotate" xlink:href="#hour-hand" repeatCount="indefinite" dur="24h" to="360 16 17" from="0 16 17" attributeName="transform">
<script type="text/javascript">
    var date = new Date,
        MINUTE = 60,
        HOUR   = 60*MINUTE,
        seconds = date.getSeconds(),
        minutes = date.getMinutes(),
        hours = date.getHours();

    minutes = (minutes * MINUTE) + seconds;
    hours = (hours * HOUR) + minutes;

    document.getElementById('second-hand').setAttribute('transform', 'rotate('+360*(seconds/MINUTE)+' 16 17)');
    document.getElementById('minute-hand').setAttribute('transform', 'rotate('+360*(minutes/HOUR)+' 16 17)');
    document.getElementById('hour-hand').setAttribute('transform', 'rotate('+360*(hours/(12*HOUR))+' 16 17)');
<!-- SVG SOURCE ends-->

<svg class="icon is-x10" viewBox="0 0 32 32">
    <use xlink:href="#clock-icon"></use>



  width: 32px;
  height: 32px;
  fill: #ccc;
  fill: #FE4365;
  width: 320px;
  height: 320px;