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.

              <div id="app">
    <h3>Let's trigger this here modal!</h3>
    <button @click="toggleShow">
      <span v-if="isShowing">Hide child</span>
      <span v-else>Show child</span>
  <transition name="fade">
    <app-child v-if="isShowing" class="modal">
      <button @click="toggleShow">

<script type="text/x-template" id="childarea">
  	<h2>Here I am!</h2>
              body {
  font-family: 'Roboto Mono', serif;
  display: flex;
  justify-content: center;

#app {
  text-align: center;
  margin: 60px;
  max-width: 370px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;

button {
  font-family: 'Roboto Mono';
  border: 2px solid black;
  background: white;
  padding: 10px 15px;
  margin: 0 10px;
  outline: 0;
  width: 60%;
  cursor: pointer;

h4 {
  margin: 0 0 15px;

.modal {
  background: cyan;
  color: black;
  padding: 20px;
  width: 200px;
  position: absolute;

.fade-enter-active, .fade-leave-active {
  transition: opacity 0.25s ease-out;

.fade-enter, .fade-leave-to {
  opacity: 0;
              const Child = {
  template: '#childarea'

new Vue({
  el: '#app',
  data() {
    return {
      isShowing: false
  methods: {
    toggleShow() {
      this.isShowing = !this.isShowing;
  components: {
    appChild: Child
Loading ..................