scroll both horizontally and vertically

I came across a tutorial on creating a scrolling page using jQuery and I followed it successfully for horizontal scrolling.

However, I'm now wondering if it's possible to implement both horizontal and vertical scrolling on the same page.

For instance, I have 3 items (1, 2, 3) that scroll horizontally. Within item 1, I have two additional items (1', 2', 3') where I would like to add vertical scrolling using the resources from the link above.

Answer №1

If you want to achieve vertical and horizontal scrolling, check out fullPage.js.

This tool enables seamless scrolling in both directions.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

What is causing the issue with the .change() function not functioning properly?

Recently, I encountered a situation where I had the following HTML code: <span class="offersReceivedCount">3</span> My goal was to trigger some code whenever the value of 3 changed to something else. In order to achieve this, I used Handlebar ...

Reconstructing a file from a string using the FileReader in reverse

Converting the file to a string: const reader = new FileReader() reader.readAsText(file, 'UTF-8') reader.onload = (event) => { this.textFile = event.target.result }; Upon uploading a Zip, Text, or Image file, my string appears as: data:t ...

Modifying the position of an image in Flask

I am trying to center an image on my webpage and have attempted the following code: <image height="300px" width="300px" src="{{url_for('static',filename = 'img/Rasd.jpeg')}}" > Visit this webpage fo ...

Aligning text in a vertical progress bar using absolute positioning

Currently, I am trying to create a health bar-like element but I am facing difficulties in centering the text within it. Despite exhausting all my options, the text is either off-center when its length changes or extends beyond the borders of the bar. Her ...

Transforming JSON data into an HTML template

Incorporating Angular 6 in my project, I have come up with the following templates: Header, Left panel, Body part, Footer Header, Left panel, Body part, Right panel, Footer Header, Body part, Footer Considering the numerous templates, I am aiming to tran ...

Press the button to import the image

<div class="leftThumbNail"> <img id = "img1" src="img/thumb/image1.jpg" class = "image1Position" alt="Image 1"> <img id = "img2" src="img/thumb/image2.jpg" class = "image2Position" alt="Image 2" > </div> A unique feature ...

Experimenting with file uploads in AngularJS with the help of Protractor

For file uploads in our application, we are utilizing ngFlow. With protractor being used for testing, we have several test case scenarios to validate such as unsupported file formats and maximum file size limitations. How can we effectively select files ...

Vue data() attribute lacking proper assignment of props

I am currently developing a Vue component that needs to update the list of restaurants based on dynamically selected filters by the user. In order to achieve this, I need to modify the filteredRestaurants in the data() method of my Vue component. However, ...

tips for applying a where clause on a jsonb column in an included table with sequelize

I currently have 2 tables stored in a postgres database. Table_A -------- id BIGINT metadata JSONB Table_B -------- id BIGINT a_id BIGINT metadata JSONB Data Table_A id | metadata 1 | {'gender': 'Male', 'name': 'xyz&ap ...

How to Automatically Close an Ajax Modal Popup After Executing Code in ItemCommand in ASP.Net

I am currently facing an issue with closing a ModalPopup after a code sequence is executed. The situation at hand involves coding a filebrowser for the company and everything seems to be working fine except for the downloading of files. I have implemented ...

Toggle the image and update the corresponding value in the MySQL database upon clicking

Looking to implement a feature that allows users to bookmark pages in my PHP application using JavaScript. The concept involves having a list of items, each accompanied by an image (potentially an empty star). When a user clicks on the image, it will upda ...

Retrieving data from a variable created by a Factory that triggers an asynchronous request

I have a scenario where one factory sends a POST request to receive key-value pairs in JSON format: .factory('DataFetcher', ['$resource', function($resource) { // Returns JSON key-value pairs, for example "{'foo', ' ...

How do I utilize jQuery to retrieve initials from the name field of a form?

I'm on the hunt for a clever solution to a rather ugly problem. I have a form that accepts a full name as input and passes it to a function. Now, I need to transform that full name into its initials (e.g. 'John Doe' becomes 'JD') b ...

Tips for getting the jQuery accordion to return smoothly to its original position (instead of stacking on top of each other)

I'm a complete beginner at this and could really use some assistance. Here's my JS Fiddle: http://jsfiddle.net/hAZR7/ The problem I'm facing seems to be more related to logic or math, as the animation works fine when starting and moving to ...

Should data objects be loaded from backend API all at once or individually for each object?

Imagine having a form used to modify customer information. This form includes various input fields as well as multiple dropdown lists for fields such as country, category, and status. Each dropdown list requires data from the backend in order to populate i ...

Is there a way for me to merge the specifications of two itemscopes in order to depict a

Adding microdata to a page can be challenging when the data for an item is spread across different parts of the page. If there are two span elements with an itemscope attribute, it would be beneficial if search engines could merge these two itemscopes into ...

What is causing the issue with $(document).append() method in jQuery version 1.9.1?

Why is the following code not functioning properly in jQuery 1.9.1? It worked fine in previous versions. $(function () { $(document).append(test); document.write('done'); }); var test = { version: "1.0", }; JSFiddle: http://jsfiddl ...

When the child is clicked, the onClick event for both the child and parent is triggered simultaneously

class Example extends React.Component { constructor(props) { super(props); this.handleChild = this.handleChild.bind(this); this.handleParent = this.handleParent.bind(this); } render() { return ( <div style={{width: ...

Next.js v13 and Firebase are encountering a CORS policy error which is blocking access to the site.webmanifest file

Background: I am currently developing a website using Next.js version 13 in combination with Firebase, and I have successfully deployed it on Vercel. Upon inspecting the console, I came across two CORS policy errors specifically related to my site.webmani ...

Stop the page from automatically scrolling to the top when the background changes

Recently, I've been experimenting with multiple div layers that have background images. I figured out a way to change the background image using the following code snippet: $("#button").click(function() { $('#div1').css("background-image ...