2020-07-05 10:35:36 +02:00
|
|
|
<!doctype html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8"/>
|
|
|
|
<title>Test syntax</title>
|
2020-07-16 00:44:52 +02:00
|
|
|
<script src="../dist/ffnm.min.js"></script>
|
2020-07-05 10:35:36 +02:00
|
|
|
<style>
|
|
|
|
.nav {
|
|
|
|
position: fixed;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
height: 10rem;
|
|
|
|
background: orange;
|
|
|
|
transition: 1s;
|
|
|
|
transform: translateY(10rem);
|
|
|
|
}
|
|
|
|
.show {
|
|
|
|
transform: translateY(0);
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
2020-07-16 00:58:17 +02:00
|
|
|
<nav class="nav" id="nav" i-click="class:remove('show')">Mi nav</nav>
|
2020-07-05 10:35:36 +02:00
|
|
|
<button i-click="class:add('show', '#nav')">add</button>
|
|
|
|
<button i-click="class:remove('show', '#nav')">remove</button>
|
|
|
|
<button i-click="class:toggle('show', '#nav')">toggle</button>
|
|
|
|
</body>
|
|
|
|
</html>
|