Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ 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 class="comic-row">
<div class="comic-panel">
    <div class="comic-caption-top">* Dee seriously watching movie with lights out.</div>
    <g class="comicgen" name="dee" angle="sitting" emotion="lookingdownsmiling" pose="sittingonbeanbagholdinglaptop"  x="-419" y="-147" scale="2.49" width="200" height="200"></g>
  </div>
 <div class="comic-panel">
    <div class="comic-caption-top">*Dey ambushes Dee...<br>Boooo!!!! </div>
  
    <g class="comicgen" name="dey" angle="side" emotion="rofl" pose="handsfolded"  x="-380" y="-100" scale="2.49" width="200" height="200"></g>
  </div>
  
  <div class="comic-panel">
    <div class="comic-caption-top">Aaaaaaahhhh!!!! </div>
    <g class="comicgen" name="dee" angle="straight" emotion="afraid" pose="handsfolded"  x="-619" y="-300" scale="3.5" width="200" height="200"></g>
  </div>
  
  <div class="comic-panel">
    <div class="comic-caption-top">It’s me, Dee... Cut down your expressions. You react as if a ghost entered your home! </div>
    <g class="comicgen" name="dey" angle="side" emotion="angryfrustrated" pose="handsfolded"  x="-380" y="0" scale="2.49" width="200" height="200"></g>
  </div>
</div>
  <div class="comic-row">
<div class="comic-panel">
    <div class="comic-caption-top">Okay now lets evaluate your expressions, lets watch this movie together</div>
    <g class="comicgen" name="dee" angle="straight" emotion="hmm" pose="handsonhip"  x="-419" y="-147" scale="2.49" width="200" height="200"></g>
  </div>
 <div class="comic-panel">
    <div class="comic-caption-top">Yeah, why not! No big deal at all...</div>
    <g class="comicgen" name="dey" angle="straight" emotion="curious" pose="shrug"  x="-150" y="0" scale="1.50" width="200" height="200"></g>
  </div>
    
     <div class="comic-panel2">
       <button id='hideshow'>click here to watch<br>click on the video for volume</button>
<div class="panel">
  <iframe width=200 height=200 src="https://editor.p5js.org/Ramya_Mylavarapu/embed/5sikcYPqb" class="content" style="border:0;display:none"></iframe>

</div>
    </div>
 
    
    <div class="comic-panel">
    <div class="comic-caption-top">Waattt the hell!!!! Now turn the lights on Dee!!</div>
    <g class="comicgen" name="dey" angle="straight" emotion="loudcry" pose="handsfolded"  x="-797" y="-280" scale="4.04" width="200" height="200"></g>
  </div>
    
              
            
!

CSS

              
                .comic-panel {
  height: 200px;          /* Each panel has a height of 200 px */
  margin: 10px;           /* ... and a little bit of spacing around it */
  border: 2px solid black;
  background-color: grey; /* ... with a thick grey border */
  overflow: hidden;       /* Comics should not spill out of the border */
  position: relative;     /* This will be useful when we add captions */
}

.comic-row {
  display: flex;
  flex-direction: row;
}

.comic-caption-top {
  position: absolute;             /* Caption sits on top of the image */
  width: 100%;                    /* It occupies the full width of the panel */
  top: 0;                         /* Position the panel at the top */
  border-bottom: 2px solid black;  /* ... and top a bottom below. */
  background-color: black;        /* Hide anything behind the caption - for legibility */
 --comic-caption-padding: 0.25rem 0.5rem;  /* Custom margin. Default: 0.25rem */               /* Give a bit of room for white-space */
  font-family: Neucha;   /* Pick a handwriting font from Google Fonts */
  font-size: 16px;
  color: white;
  text-transform: uppercase;      /* Comic lettering is usually uppercase */
}
.comic-caption-top, .comic-caption-bottom { /* Apply any custom styles you want */
  text-transform: uppercase;
}

.comic-panel2 {
  height: 200px;          /* Each panel has a height of 200 px */
  margin: 10px;           /* ... and a little bit of spacing around it */
  border: 2px solid black;
  background-color: black; /* ... with a thick grey border */
  overflow: hidden;       /* Comics should not spill out of the border */
  position: relative;     /* This will be useful when we add captions */
}

              
            
!

JS

              
                $(document).ready(function(){
  $('#hideshow').on('click', function(event) {        
     $('.content').toggle('show');
  });
});
$(document).ready(function(){
  $('#hideshow2').on('click', function(event) {        
     $('.content2').toggle('show');
  });
});


              
            
!
999px

Console