Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8869265
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T17:26:57+00:00 2026-06-14T17:26:57+00:00

I am new to jquery and trying to build a full page responsive slider.

  • 0

I am new to jquery and trying to build a full page responsive slider. It is working fine except that I want different things to happen at each slide / percent value. All of my slides are in ‘slider’ and are 100% width, so:

slide 1 – (is visible when) ‘slider’ left 0
slide 2 – ‘slider’ left -100percent
slide 3 – ‘slider’ left -200percent
and so on

The first if statement works fine but the second has no effect, I have also tried ‘position’ instead of ‘offset’

$('#next').click(function(){
    $('#slider').animate({'left': '-=100%'},
        function() {
            var pos = $('#slider').offset();
            if (pos.left < 0) {
                $('#div1').show();
                } 
            else if (pos.left == '-700%') {
                $('#div1').hide();
                } 
     });    
});

Any help is much appreciated! Thank you.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T17:26:58+00:00Added an answer on June 14, 2026 at 5:26 pm

    offset() is normalized by jQuery to always return px values; regardless of what CSS you have applied to the element.

    The top and left values are numbers, not strings, FYI.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm new to Web development and jQuery. I'm trying to build an ASPX page
I fairly new to JQuery and perhaps trying to achieve something that might be
I'm new to JQuery and trying to use it to dynamically build HTML based
I'm trying to build a jQuery function that will allow me to produce a
I am new to Jquery and and trying to build a simple gallery. I
Fairly new to jQuery, trying to use Autocomplete. Went to http://jqueryui.com/download to build my
I am new to JQuery Mobile and trying to build a simple app. Part
I'm trying to build javascript editable grid with kendoui, I want edit popup that
I'm new to jQuery and trying to combine the use of a tooltip plugin
I'm new to jQuery and trying to change an attribute of an SVG element

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.