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.


                <!-- 定義側 -->
<svg class="svg-defs">
    <!-- 虹 -->
    <symbol id="rainbow" viewBox="0 0 380.46 190">
      <radialGradient id="rainbow-gra" cx="190.23" cy="190" r="190.23" gradientUnits="userSpaceOnUse">
        <stop offset="0.7" stop-color="#c7659a"/>
        <stop offset="0.76" stop-color="#51527d"/>
        <stop offset="0.82" stop-color="#4facd2"/>
        <stop offset="0.88" stop-color="#369263"/>
        <stop offset="0.94" stop-color="#f4eb5f"/>
        <stop offset="1" stop-color="#d94f4f"/>
      <path fill="url(#rainbow-gra)" d="M55.69,190a134.54,134.54,0,0,1,269.08,0h55.69C380.33,85,295.21,0,190.23,0S.13,85,0,190Z"/></path>
    <!-- 雲 -->
    <symbol id="cloud" viewBox="0 0 121 80.67">
      <path d="M96.51,15.85a24.73,24.73,0,0,0-4.33.4A24.45,24.45,0,0,0,51.61,7.41a24.4,24.4,0,0,0-38.27,24.1A24.48,24.48,0,1,0,44.5,67.38a24.47,24.47,0,0,0,45-3.58,24.48,24.48,0,1,0,7-47.95Z"/>
    <!-- 太陽 -->
    <symbol id="sun" viewBox="0 0 115.39 115.39">
      <g id="sun-circle">
        <circle class="sun-circle" cx="57.7" cy="57.7" r="30.28"/>
      <g id="sun-line" class="sun-line">
        <line x1="15.94" y1="57.7" y2="57.7"/>
        <line x1="28.17" y1="87.22" x2="16.9" y2="98.49"/>
        <line x1="57.7" y1="99.45" x2="57.7" y2="115.39"/>
        <line x1="87.22" y1="87.22" x2="98.49" y2="98.49"/>
        <line x1="99.45" y1="57.7" x2="115.39" y2="57.7"/>
        <line x1="87.22" y1="28.17" x2="98.49" y2="16.9"/>
        <line x1="57.7" y1="15.94" x2="57.7"/>
        <line x1="28.17" y1="28.17" x2="16.9" y2="16.9"/>
      repeatCount="indefinite" /> 

<!-- 呼び出し側 -->
<svg  xmlns="" xmlns:xlink="" id="oekaki-area" width="500" height="300" viewBox="0 0 500 300" role="img" aria-labelledby="oekaki">
<!-- 雲・下(2) -->
  <use href="#cloud" class="cloud cloud--2" x="350" y="160" width="120" height="80"></use>
<!-- 虹 -->
  <use href="#rainbow" x="75" y="125"  width="350" height="175"></use>
<!-- 太陽 -->
  <use href="#sun" x="20" y="20" width="130" height="130"></use> 
<!-- 太陽のパーツを個別に出す場合 -->
<!--   <use class="sun-circle" href="#sun-circle" x="20" y="20" width="130" height="130"></use> 
  <use class="sun-line" href="#sun-line" x="20" y="20" width="130" height="130"></use> -->
<!-- 雲・上(1) -->
  <use href="#cloud" class="cloud cloud--1" x="250" y="10" width="140" height="93.3"></use>


                /* 定義側のSVGの隙間削除 */
.svg-defs {
  display: block;
  width: 0;
  height: 0;

#oekaki-area {
  border: 1px solid #000;
  background-color: #def0f3;
.cloud {
  fill: #fff;
  animation-duration: 20s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-direction: normal;
.cloud--1 {
  animation-name: flowing-clouds1;
  animation-delay: -4.5s;
.cloud--2 {
  animation-name: flowing-clouds2;
  animation-delay: -3s;
@keyframes flowing-clouds1 {
  0% { transform: translateX(250px); }
  100% { transform: translateX(-390px); }
@keyframes flowing-clouds2 {
  0% { transform: translateX(150px); }
  100% { transform: translateX(-470px); }
.sun-circle {
  fill: #f08218;
.sun-line {
  stroke: #f08218;
  stroke-miterlimit: 10;
  stroke-width: 4px;