vue-visible
Version:
v-visible directive for Vuejs
44 lines (41 loc) • 1.66 kB
HTML
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Vue visible - v-visible directive for Vue</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" />
<style>
.card {
padding: 20px;
background: #FFF;
box-shadow: 1px 1px 10px #ddd;
display: inline-block;
margin: 20px;
font-size: 18px;
text-align: center;
}
.card .content {
padding: 10px;
border-radius: 4px;
background: #EDEDED;
margin-bottom: 10px;
}
</style>
</head>
<body>
<!--[if lt IE 7]>
<p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="#">upgrade your browser</a> to improve your experience.</p>
<![endif]-->
<h1>Vue-visible example</h1>
<h3>v-visible directive for Vue</h3>
<div id="app"></div>
<script src="http://unpkg.com/vue"></script>
<script src="../dist/v-visible.js"></script>
<script src="app.js"></script>
</body>
</html>