VelocityJS Issues
Fork and edit this as an example of a reported issue on GitHub
HTML
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js"></script>
<script src="https://rawgit.com/julianshapiro/velocity/master/velocity.js"></script>
<script src="https://rawgit.com/julianshapiro/velocity/master/velocity.ui.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.3.3/semantic.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.3.3/semantic.min.css">
<div class="ui main text container">
<div class="row" id="page-header">
<div class="ui basic segment" style="padding-left: 0;">
<h1 class="ui sub header">
<span class="logo-line-before">
<i class="bf" style="left: 100%;"></i>
</span>
<span class="ttl" style="opacity:0;"> Your data corner <span>
<span class="logo-line-after">
<i class="af" style="right:100%;"></i>
</span>
</h1>
<div class="ui top vertical segment mmn" style="opacity:0;">
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
</div>
</div>
</div>
</div>
CSS
body {
font-family: Archivo !important;
}
i.bar {
font-size: 2em;
}
s
.container.main {
margin-top: 7.0em;
}
#delete {
display: inline;
}
#post-header h2 {
font-size:40px;
padding-left: 10px;
margin-top: 50px;
font-family: Archivo;
}
.image > img {
max-height: 100px;
}
#page-header {
margin-top: 4em;
font-family: Archivo;
}
#page-header h1 {
font-size: 60px;
font-family: Archivo;
}
.ui.inverted.pointing.menu .active.item:after {
background-color: white !important;
}
@media only screen and (min-width: 768px) and (max-width: 991px) {
.ui.container {
width: 723px;
}
}
.logo-line-before i,
.logo-line-after i {
position: relative;
display: block;
height: 2px;
background: #222;
}
.logo-line-before,
.logo-line-after {
display: block;
overflow: hidden;
margin: 0 auto;
width: 75%;
}
.ui.sub.header {
margin-top: auto;
}
.ui.main.text.container {
overflow: hidden;
}
.ui.basic.segment {
padding-top: 25px;
}
JavaScript
document.querySelectorAll(".bf").velocity({ transform: ["translateX(-100%)", "translateX(0%)"] }, { duration: 300 });
document.querySelectorAll(".af").velocity({ transform: ["translateX(100%)", "translateX(0%)"] }, { duration: 300 });
document.querySelectorAll(".ttl").velocity("slideInDown", {delay: 600 });
document.querySelectorAll(".mmn").velocity("slideInDown", { delay: 1200 });