Pen Settings

HTML

CSS

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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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 id="app">
  
  <h1>{{title}}</h1>

  <div class="container">
    <div class="row">
			<template v-for="(item, index) in itens">
				<div v-if="(index % 6) == 0 && index > 0" class="visible-lg clearfix"></div>
				<div v-if="(index % 4) == 0 && index > 0"  class="visible-md clearfix"></div>				
				<div v-if="(index % 3) == 0 && index > 0"  class="visible-sm clearfix"></div>
				<div v-if="(index % 2) == 0 && index > 0"  class="visible-xs clearfix"></div>
				
				<div class="col-xs-6 col-sm-4 col-md-3 col-lg-2">
					<a href="#" class="thumbnail box">
						<img class="img-responsive" src="https://placehold.it/500x300" alt="" />
						<h4>{{index}} - {{(index % 6)}} - {{item.title}}</h4>
						<p>{{item.description}}</p>
					</a>
				</div>

			</template>
    </div>
  </div>
</div>
              
            
!

CSS

              
                a.box:hover{
	text-decoration:none
}
              
            
!

JS

              
                new Vue({
	el: "#app",
  data: {
  	title: 'Boxes dinamicos sem encavalamento',
  	itens:[
    	{
      	title: "Quis autem vel eum iure reprehenderit", 
      	description: "reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?"
      },
    	{
      	title: "doloremque laudantium", 
      	description: "dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores"
      },
    	{
      	title: "maiores alias consequatur aut perferendis", 
      	description: "doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis"
      },
    	{
      	title: "laborum et dolorum", 
      	description: "placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus."
      },
    	{
      	title: "Nam libero tempore", 
      	description: " Itaque earum rerum hic tenetur a sapiente delectus"
      },
    	{
      	title: "Nemo enim ipsam voluptatem quia", 
      	description: "voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur"
      },
    	{
      	title: "Et harum quidem rerum facilis", 
      	description: "molestiae non recusandae illum qui dolorem eum fugiat quo voluptas nulla pariatur?"
      },
    	{
      	title: "Quis autem vel eum iure reprehenderit", 
      	description: "reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?"
      }      
		]
  }
});
              
            
!
999px

Console