:cookie: 348 | @hemangsk |http://www.freecodecamp.org/hemangsk
<nav class="navbar navbar-inverse" id="my-navbar">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div class="collapse navbar-collapse menu" id="navbar-collapse">
<ul class="nav navbar-nav navbar-right">
<li><a href="index.html">Home</a></li>
<li><a href="company.html">Company</a></li>
<li><a href="portfolio.html">Portfolio</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</div>
</nav><!--end nav-->
Does anyone have a codepen link to this type of animation delay as demonstrated in this portfolio http://www.kkasbarian.com. When the user scroll downs the effect animation happens when they get to that specific point.
I'm using https://daneden.github.io/animate.css/ for this. However, when I launch my page all the animations take place upon when I launch the page not when the user scrolls down to that specific point.
quote
div beneath main
in the media querry I created? https://codepen.io/dimitris51/full/GxOVbX/
:star2: 9154 | @sjames1958gm |http://www.freecodecamp.org/sjames1958gm
var arr1 = [1001];
and then var arr2 = arr1;
is that those compare as equal using ===
. I can believe that is true because in that case both variables are assigned to point to the same array.
>
or <
aspect, so it doesn't really answer that part of the question. I guess it depends on the implementation of the javascript engine, at least it might.
can someone help me with this js error,i ran the debugger and it says "document is not defined" here is my code ``
function showMenu() {
var dropMenu = document.getElementsByClassName("dropMenu");
dropMenu.style.display = "block";
}
function hideMenu() {
var dropMenu = document.getElementsByClassName("dropMenu");
dropMenu.style.display = "none";
}
var dropBtn = document.getElementById("dropBtn");
dropBtn.addEventListener("mouseover", showMenu);
dropBtn = document.getElementById("dropBtn");
dropBtn.addEventListener("mouseout", hideMenu);```
``function showMenu() {
var dropMenu = document.getElementsByClassName("dropMenu");
dropMenu.style.display = "block";
}
function hideMenu() {
var dropMenu = document.getElementsByClassName("dropMenu");
dropMenu.style.display = "none";
}
var dropBtn = document.getElementById("dropBtn");
dropBtn.addEventListener("mouseover", showMenu);
dropBtn = document.getElementById("dropBtn");
dropBtn.addEventListener("mouseout", hideMenu);``