Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

K

kan2a

@kan2a
About
Posts
4
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Thumbnails mouseover transition
    K kan2a

    Hi Marius,

    Have you got the time to check this ?
    Thank you very much !
    Aurélien

    General Discussion

  • Thumbnails mouseover transition
    K kan2a

    Hello !
    I'm trying to adjust the speed of the transition between the project thumbnail image and the project thumbnail image mouseover.
    I tried to modify the css using transition properties (like transition duration), but it don't works.
    I probably didn't find the good selector on CSS...I tried on .mo_thumb entries for exemple but without success...
    Thank you !

    General Discussion

  • Smooth scroll with anchor
    K kan2a

    Thank You Marius.
    I'm sorry, I already looked at this documentation but to be honest, I do not understand the logic.
    I changed the line
    jQuery(document).ready(function(){
    for
    window.laytheme.on("newpage", function(layoutObj, type, obj){
    But I suppose it's not enough, it would be too simple :)

    The curious thing is that the code to return to top (scrollTop:0) or scroll the window height (the code armin posted just above), this works without problem with jQuery(document).ready(function(){

    But I don't find a code to transform existing anchors to smooth scroll...

    General Discussion

  • Smooth scroll with anchor
    K kan2a

    Hello,
    I'm not sure I understand how creating a smooth scroll with anchor.

    I also tried this code I found to transform all the links with "#".
    But it don't works. Have you got an idea why ?

    (I put it between <script> on the <head> of custom css)

    jQuery(document).ready(function(){
       jQuery('a[href^="#"]').click(function(){
           evt.preventDefault(); 
       var target = jQuery(this).attr('href');
       jQuery('html, body')
          .stop()
          .animate({scrollTop: jQuery(target).offset().top}, 1000 );
       });
    });
    
    

    Thank you !

    General Discussion
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Recent
  • Tags
  • Popular
  • Users
  • Search