Jump to content
Search Community

AsKadir

Business
  • Posts

    156
  • Joined

  • Last visited

Everything posted by AsKadir

  1. Hello! Can I short my js code if I have two divs with the same TweenMax parameters? HTML: <div class="nav-content"></div> <div class="menu-mark-container"></div> JS: var tl = TweenMax; tl.to('.nav-content', 0.5, {x: "500%", ease: Expo.easeInOut}); tl.to('.menu-mark-container', 0.5, {x: "500%", ease: Expo.easeInOut}); }); Can we just wrote two divs in one TweenMax? Thanks a lot.
  2. I didn’t wrote position relative here, I forgot about that, but neither it doesn’t work. I used position relative and my z-index 100, but after tweenmax z-index of my div becomes zero. Thank for your answer.
  3. Thanks, I know that without a demo it’s hard to help. But my question isn’t about z index positioning, I know positioning. So I use position absolute, because I read all problems with z-index and a 95% has the same issues and found only two solutions: 1) change position to absolute 2) change z-index of div in js
  4. Hi! I have some problem with Tweenmax, when I use it to my div it changes its z-index. My example: html: <div class="portfolio-container"> <div class="portfolio-nav"> <button id="prev"><h1><a href="portfolio6.html">prev</a></h1></button> <button id="next"><h1><a href="portfolio2.html">next</a></h1></button> </div> <div class="portfolio-pagination">........ ....</div> css: .portfolio-container: {z-index: 100;} js: TweenMax.from('.portfolio-container', 1, {x: "-100%", ease: Expo.easeInOut}); Matrix is working good, but my z-index: 100, becomes z-index: 0. I met this before and find that with position: absolute it works and doesn’t change index, but my div should be relative. Can you help me, please? Thanks.
  5. Hi! I am a beginner, so sorry for the stupid question, but I tried to make great stacking slider, so it works with the button next, but with previous, it comes error, as you can see in url. Can you help me, please? ?
×
×
  • Create New...