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

Auto Save

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 id="app">
  <div class="container py-2">
    <ul class="row" data-masonry='{"percentPosition": true }'>
      <li class="col-sm-4 col-md-3 py-3" v-for="(data, index) in data" :key="index">
        <div class="card border-primary">
          <div class="card-body">
            <h3 class="card-title">
              {{ data.AreaName }}
            </h3>
            <p class="card-text">
              {{ data.text }}
            </p>
            <a href="#" class="btn btn-outline-secondary">Outline</a>
          </div>
        </div>
      </li>
    </ul>
  </div>
</div>
              
            
!

CSS

              
                li {
  list-style:none;
}
              
            
!

JS

              
                var app = new Vue({
  el: "#app",
  data() {
    return {
      data: [
        {
          AreaName: '信義區',
          SpotNo: 30,
          text: "With supporting text below as a natural lead-in to additional content.",
          Image: "https://cdn.pixabay.com/photo/2021/11/25/09/28/amsterdam-6823002_960_720.jpg",
        },
        {
          AreaName: '中山區',
          SpotNo: 65,
          text: "With supporting text",
          Image: "https://cdn.pixabay.com/photo/2016/04/11/10/45/sunrise-1321710_960_720.jpg",
        },
        {
          AreaName: '文山區',
          SpotNo: null,
          text: "With supporting some more text below as a natural lead-in to additional content",
          Image: "https://cdn.pixabay.com/photo/2020/06/16/20/38/boy-5307219_960_720.jpg",
        },
        {
          AreaName: '信義區',
          SpotNo: 660,
          text: "lead-in to additional content",
          Image: "https://cdn.pixabay.com/photo/2021/12/04/15/01/leaves-6845395_960_720.jpg",
        },
        {
          AreaName: '內湖區',
          SpotNo: 75,
          text: "With supporting text below as a natural lead-in to additional content and more spporting text below ... content. additional content",
          Image: "https://cdn.pixabay.com/photo/2021/11/22/16/46/nature-6816877_960_720.jpg",
        },
        {
          AreaName: '大同區',
          SpotNo: 306,
          text: "With more more more supporting text",
          Image: "https://cdn.pixabay.com/photo/2021/10/09/00/15/landscape-6692712_960_720.jpg",
        },
        {
          AreaName: '北投區',
          SpotNo: null,
          text: "With supporting text",
          Image: "https://cdn.pixabay.com/photo/2017/11/19/22/37/seal-2964019_960_720.jpg",
        },
        {
          AreaName: '中正區',
          SpotNo: 220,
          text: "Masonry is not included in Bootstrap.",
          Image: "https://cdn.pixabay.com/photo/2021/12/01/18/17/cat-6838844_960_720.jpg",
        },
        {
          AreaName: '大同區',
          SpotNo: null,
          text: "Add it by including the JavaScript plugin manually, or using a CDN like so",
          Image: "https://cdn.pixabay.com/photo/2021/02/09/21/19/dog-walk-snow-6000001_960_720.jpg",
        },
      ],
    }
  }
})
              
            
!
999px

Console