Git Product home page Git Product logo

fsvs's Introduction

#Showcase Send a pull request to add your projects to the showcase list

#FSVS2 (BETA) on development branch

link: https://github.com/lukesnowden/FSVS/tree/development demo: https://www.lukesnowden.co.uk/full-screen-vertical-scroll/v2

I am currently having issues trying to hijack the screen on scroll for mobiles. If anyone cares to try and accomplish this as I've currently ran out of ideas, it would be greatly appreciated and you will be accredited for it.

#FSVS - Full Screen Vertical Scroller

more information https://www.lukesnowden.co.uk/full-screen-vertical-scroll

###initiate the plugin:

$(document).ready( function() {
	var slider = $.fn.fsvs({
		speed : 5000,
		bodyID : 'fsvs-body',
		selector : '> .slide',
		mouseSwipeDisance : 40,
		afterSlide : function(){},
		beforeSlide : function(){},
		endSlide : function(){},
		mouseWheelEvents : true,
		mouseWheelDelay : false,
		scrollableArea : 'scrollable',
		mouseDragEvents : true,
		touchEvents : true,
		arrowKeyEvents : true,
		pagination : true,
		nthClasses : false,
		detectHash : true
	});
	//slider.slideUp();
	//slider.slideDown();
	//slider.slideToIndex( index );
	//slider.unbind();
	//slider.rebind();
});

###Basic HTML structure (please note that the fsvs class is needed on the HTML tag)

<!doctype html>
<html class="fsvs" lang="en">
	<head>
		<link href="assets/css/style.css" media="all" rel="stylesheet" type="text/css" />
        <script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
        <script src="//code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
        <script src="assets/js/bundle.js"></script>
	</head>
	<body>
		<div id="fsvs-body">
			<div class="slide"></div>
			<div class="slide"></div>
			<div class="slide"></div>
		</div>
	</body>
</html>

fsvs's People

Contributors

anandubajith avatar lukesnowden avatar rodneyrd avatar roganartu avatar rzakadragon avatar sknep avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fsvs's Issues

slide on click slideup

great source
i have a question
Click on the slide to slide up.
I do not want this action.
What JavaScript should I fix?
Thanks
Warm Regards

Firefox issues

Hey,

I have some issues running the slider in Firefox:

  • the mouse scroll is acting in reverse (if i scrool up i get the next slide instead of previous)
  • i place content in the 4th slide and it appears in the first slide.

What can i do to fix that?

Allow scrolling during slide transition

One of the things I dislike the most about full screen scrolling layouts is when I try to scroll all the way to the bottom of a page with my mouse wheel and I have to wait for a transition to end before I can trigger the next one.

A configurable delay before accepting a new mouse wheel scroll would allow more natural feeling scrolling when desired without breaking the full screen scrolling feel.

Slide Up/Down Event?

Hi,

Is it possible to know the direction the user is sliding? i.e. If they go up an event happens and vice versa for down.

Or alternatively, is there a way of custom pagination? I basically want to use text headlines to achieve something similar to this:
http://jsfiddle.net/peterhay/xrqjaxk7/

Thanks

Unable to select form fields on mobile with touch events enabled

Hey, really love this script.

With touch events enabled on a mobile device (tested on iOS and Android via Chrome debugger), form fields and DOM event listeners (including the fsvs pagination elements) become unresponsive to interaction. If I turn off touch events, everything works as intended.

Knowing when you've reached the last slide

Your plugin is probably the most reliable vertical slider plugins I've found. I know you said that your having trouble with mobile but on iPhone's it works great.

This is more of a question than an issue but I'm trying to go back to normal scrolling when you've reached the last slide. I have 4 slides using your plugin and as soon as you try to scroll further down the page I'd like to slide down to a normal scrolling area, akin to: http://www.hugeinc.com/

Is this even achievable with your plugin, if so could you point me in the direction of where in your code I should look to try and get this implemented?

mobile compatibility

fvs-pagination links and other icons with links won't work on touchscreen devices

Overflow

Hello, great plugin. Is there a way to have a section overflow and scroll?

Bullets label

Is there a way to have a label for bullets on hover?

API or event preventDefault to cancel slide

First, thanks Luke for creating this.

I'm working on a demo for my company's Fuel UX controls and am using your plugin. There's a lot of scrolling <pre><code> in the project. The scrolling of the <pre> triggers the scrolling of the FSVS slides.

I looked for a way to disable slide and couldn't find one. I wrote a hack to disable FSVS on mouseover of <pre> with a global flag, but had to edit mouseWheelHandler(). Do you have a suggestion for implementing this? I don't mind creating a pull request, but would be interested in knowing the architecture you'd want.

My suggestion would be to be able to disable slide from within beforeSlide. Something like a return false that would allow my app to decide whether the animation occurs. Any thoughts?

Looping

Hello,

I'm interested in knowing if it is possible to do looping on carousel? Not just scrolling back to top, but kinda act as infinite scroll.

Kind regards, Morten.

Text boxes are not editable. Cannot enter data in the form.

Thanks for the plugin lukesnowden. I ran into an issue when using your slider.
In my page ( with class="fsvs"), I am including the footer using @include('page.footer').

The footer has a contact form. However the input text boxes in it are not editable.

In fact any input text box in the html page is not editable . I am able to click the submit button, but not able to enter anything into the text.
This behaviour is when in the method $.fn.fsvs , mouseDragEvents is set as true.

I want the text boxes to be enabled, so that details could be entered into the form.

var slider = $.fn.fsvs({
autoPlay : false,
speed : 1000,
bodyID : 'fsvs-body',
selector : '> .slide',
mouseSwipeDisance : 100,
afterSlide : function(){
$('.nav').removeClass('top');
},
beforeSlide : function(){
$('.nav').addClass('top');
},
endSlide : function(index) {

                	if( status == 1 ){
                		status = 0;
                		return false
                	}

              $.ajax({
                   url: '{{url('get-next-product')}}',
                   data: {'products_array':products_array},
                   success: function (data) {
                        if(data == 0){
                            return false 
                        }
                        products_array.push( data.id );                    
                        
                        html = list_html(data);
                        $('<div class="slide">'+html+'</div>').appendTo( $('#fsvs-body') );
                   }
               });
                           
                },
                mouseWheelEvents    : true,
                mouseWheelDelay     : false,
                mouseDragEvents     : true,
                touchEvents         : true,
                arrowKeyEvents      : true,
                pagination          : false,
                nthClasses          : 2,
                detectHash          : false,
            });

Kindly help.

Regards
Harris

Ability to Programatically Remove FSVS from DOM

Is it possible to remove FSVS and it's associated events from the DOM programmatically? For example, in a client-side templating system like Ember or Meteor, views are being swapped on and off of the screen without having to refresh the browser. So when I swap out my FSVS view for a non-FSVS view, I'd like to remove these events. Currently, I'm getting some wonky behavior trying to scroll on the non-FSVS views because the events are still present. Thanks!

FSVS auto play

Hey there.

It would be very interesting to have an autoplay option/param? This is too dificult to accomplish?
I implemented your code in this store (http://specialebrides.com) but home page lacks dinamic.

Can you enlight me for an solution?

Regards

3 sliders and home

I need have 3 sliders with this movement, but in the fourth I need see the home page, and if is possible, if you retourned to top, you can seen the 3 sliders other time.

add a counter to slider

Hi Luke,
great work! I have tried to add a counter to slider with:

      var totalItems = $('.slide').length;

        var currentIndex = $('.slide').index() + 1;
            $('.num').html(''+currentIndex+'/'+totalItems+'');

        $('#fsvs-body').bind('slid', function() {
            currentIndex = $('.active-slide').index() + 1;
            $('.num').html(''+currentIndex+'/'+totalItems+'');
        });

but when jump from a slide to another the number is not updated.. Any idea or suggestion?
Thanks in advance!

Firefox: Absolute Position Elements Stack on 1st Slide

Firefox bug:

If you absolute position an element with CSS, regardless of what slide it is in, it will get thrown into the 1st slide and only display there. And I'm not sure how to fix this.

Here's a screenshot. I have images positioned absolute across 5 different slides. But in Firefox, they all get displayed in the first:
screen shot 2015-03-21 at 12 38 12 am

Scrolling back up from a scrollable slide.

I have 4 slides on my website. The 4th has a large scrollable div so the user can scroll and see the footer. However when they begin to scroll back up the plugin takes them back to the 3rd slide.

Any way to counter this?

Can't focus in input fields when using FSVS

I don't know if anyone else ran into this issue, but FSVS prevents me from being able to focus in an input field. I think it has to do with e.preventDefault but haven't had the time to dig further. I will after work.

Cheers

slider down with mousewheel problem

Hi,
Whenever I scroll down the scrip go to the second slide beside a portion of the third slide, and then it jumps up to the top of the second slide (active slide).

But going up is working fine, it slides to the upper slide without a problem.

Arrow keys interfere with native form field behaviour

The current version of the bindKeyArrows() event handler code interferes with the expected native browser behaviour of the up and down arrow keys in the context of a form field.

As an example, let's say you embed a country dropdown list (<select> element and multiple <option> elements) inside of an FSVS slide. When a user interacts with the form field by pressing either the up or down arrow keys to change the selected dropdown option, FSVS erroneous triggers the slideUp() or slideDown() function respectively. In this instance, I believe the event bubbles all the way up the DOM but should probably be intercepted so that it doesn't bubble any further than the <form> element.

Not working on mobile in landscape

Hi, thanks for your hard work on this.

I have a problem, when you tilt your mobile to landscape (happens to me on iphone 6+ ios10) slides 2 and on do not show.

The same happens if you start in landscape and refresh.

This happens with your own demo URL too.

Any ideas?

Many thanks

Event bubble error on select change event

Hey,

I have what appears to be an event bubbling error when I choose an option in a select box. On choosing an option in a select this triggers a slideToIndex() event. Any ideas on how or where this could happen?

Its an angular select and options on slider are:

{
speed : 1300,
mouseDragEvents : false,
detectHash: true
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.