• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Need help analysing a functionlity

 
Ranch Hand
Posts: 367
Eclipse IDE Opera Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

Sorry for this question but I'm inspecting a 'Go to top' element on a website to understand how it works.
I could not find the distance to scroll down to make it visible and how it works when I click it.
I was expecting something like but didn't see anything like it which made me more curious.

Attaching the firebug description for the element here. Please let me know if any more details are required.
Your help is greatly appreciated.

Myntra-screen.PNG
[Thumbnail for Myntra-screen.PNG]
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Obviously something is taking the scroll-to-top class and implementing the functionality. What libraries are included on the page?

Remember, most of these advanced functionalities are not going to be implemented in HTML, which being focused on structure has limited behavioral functionality. Behaviors are the purview of JavaScript and CSS3.
 
pramod talekar
Ranch Hand
Posts: 367
Eclipse IDE Opera Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Bear for your response.
I didn't find any libraries but there are many scripts included and few of them had ScrollToTop class mentioned in them.

Could you please have a look on URL and guide me.

Thanks so much !
 
Bear Bibeault
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry, but I do not have time to inspect each library included by the site to find that particulate piece of functionality. You'll need to look at the code for each library and see which hooks onto the scroll-to-top class and instruments it to perform the functionality you are asking about.
 
pramod talekar
Ranch Hand
Posts: 367
Eclipse IDE Opera Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for your reply Bear !
reply
    Bookmark Topic Watch Topic
  • New Topic