Tips for creating a continuous display of multiple scrolling images in HTML

This is the full HTML and CSS code

Here is the CSS for creating a scrolling images effect.


        <style>
            * {margin: 0; padding: 0;}
            
            body {
                background-color: #666;
            }

            #container {
                width:70%;
                overflow: hidden;
                margin: 50px auto;
                background: white;
            }
          
             /* Header */
            header {
                width: 800px;
                margin: 40px auto;
            }
            
            header h1 {
                text-align: center;
                font: 100 60px/1.5 Helvetica, Verdana, sans-serif;
            }

            header p {
                font: 100 15px/1.5 Helvetica, Verdana, sans-serif;
                text-align: justify;
            }
            
            /* Photo banner */
            .photobanner {
                height: 233px;
                width: 3550px;
                margin-bottom: -45px;
            }

            /* Keyframe animations */
            .first {
                -webkit-animation: bannermove 30s linear infinite;
                -moz-animation: bannermove 30s linear infinite;
                -ms-animation: bannermove 30s linear infinite;
                -o-animation: bannermove 30s linear infinite;
                animation: bannermove 30s linear infinite;
            }

            @keyframes "bannermove" {
                0% {
                    margin-left: 0px;
                }
                100% {
                    margin-left: -2125px;
                }
            }

            ...

            ...
     
           </style>
       </head>
     

This is the HTML code:


        <body>
          <div id="container">
              <a href="http://www.somelink.com">
                  <div class="photobanner">
                      <img class="first" src="images/Arjun_singh.jpg" alt="" />
                      // more images...
                  </div>
              </a>
          </div>
          </body>
    

If possible by JavaScript or jQuery, you can send me the link.

For a quick view, check out this link:

Answer №1

If you're in need of a library, this could be the one you're searching for.

Check out:

It's user-friendly and only requires jQuery. Give it a try!

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

Modifying the design of a webpage using JavaScript, proceeding to the next step, and then navigating back

I am currently working on enhancing the user experience by providing customers with the option to either log in to our booking system or fill out a form with their information. When they first arrive on the page, they are presented with these two choices. ...

Issue with MVC 4 Razor and Jquery UI datepicker function: "Property or method not supported"

After spending the last two hours trying to solve this issue, I am still stuck. The error message that keeps appearing in my MVC application is: "0x800a01b6 - JavaScript runtime error: Object doesn't support property or method 'datepicker'" ...

"Seeking clarification on submitting forms using JQuery - a straightforward query

My goal is to trigger a form submission when the page reloads. Here's what I have so far: $('form').submit(function() { $(window).unbind("beforeunload"); }); $(window).bind("beforeunload", function() { $('#disconnectform&apo ...

I want to use Angular and TypeScript to play a base64 encoded MP3 file

I am attempting to play a base64 encoded mp3 file in an Angular application. I have a byteArray that I convert to base64, and it seems like the byte array is not corrupted because when I convert it and paste the base64 string on StackBlitz https://stackbli ...

Transform data into JSON format using AJAX in CodeIgniter

I am having trouble with converting json code in CodeIgniter for pagination. I am using ajax to control the data conversion to json and sending it to the view. Can someone please explain how to do this? In the controller, instead of using a foreach loop, ...

Utilizing ES6 Proxy leads to the occurrence of an error message stating "this is not a function" whenever a function call

As I ventured into the depths of ES6 Proxies, attempting to be a crafty developer, I found myself entangled in their complexities. My goal was to intercept any get or set operation on a property from a class I had written and ensure that they were stored e ...

Retrieve the previous URL for redirection purposes

I have a specific route set up in my application. If the user is not logged in, they are redirected to the login page. I am currently working on capturing the previous route that the user came from so that I can redirect them back there after they have suc ...

Guide to positioning an icon at the center of a material card

I am new to CSS and Angular Material, and I need help centering the icon on the card following the design from Figma. I tried copying the CSS from Figma, but it didn't center the icon as expected. Can someone please share techniques to achieve this? S ...

Exploring the capabilities of TabrisJs in conjunction with Upnp technology

Working with Upnp in TabrisJs seems to be a bit challenging. Even though it has good support for node packages, I am facing difficulties while dealing with Upnp. I included node-upnp-client in my package.json file. "dependencies": { "tabris": "^2.0 ...

The effects of external CSS are not being displayed or are being overridden

I am currently working on a webpage design that resembles the style of Microsoft's website. I came across a tutorial on W3 Schools for creating an image slideshow, which can be found here: https://www.w3schools.com/howto/howto_js_slideshow.asp. The ex ...

Eliminate any height changes in the ul element during a CSS transition

Here is the code I've been using to style my side navigation, which has been working perfectly without any transitions. SCSS Code and a functional JSFiddle .side-nav{ position: fixed; z-index: 100; right: 0; margin-top: 15vh; ul { lis ...

Change the identifier of a value within the React state

I am currently working on a form that includes input fields for both keys and values. The goal is to allow users to edit key value pairs, where editing the value field is straightforward, but editing the key field requires updating, removing, and tracking ...

What is the process for altering a variable within an Ajax function?

Scenario: I'm dealing with JSON data fetched from the backend which needs to be presented in a table format. To achieve this, I've created a string called tableOutputString and am populating it by iterating through the JSON response. Finally, I&a ...

How does firebase's realtime database compare to mongoDb?

Is the Firebase realtime database actually a MongoDb database or is it simply structured as JSON? I am curious to find out if querying this database is similar to querying a MongoDb database. Can queries like the following be executed: db.users.ensureIn ...

Using JQuery to send a post request to an iframe and receiving a

Currently, I am utilizing a form on a webpage to send data to an iFrame. This process can occur multiple times based on user requests. You can see an example of this process here: Target an iframe with a HTML Post with jQuery My goal is to implement speci ...

What is the method for pulling information from MySQL and presenting it on a website using Node.js?

Currently, my goal is to retrieve data from MySQL and showcase it on my HTML page. The code snippet in server.js looks like this: const path = require('path'); const express = require('express'); const bodyParser = require("body-pa ...

Is there a way to automatically select all checkboxes when I select contacts in my case using Ionic 2?

initializeSelection() { for (var i = 0; i < this.groupedContacts.length; i++) { for(var j = 0; j < this.groupedContacts[i].length; j++) this.groupedContacts[i][j].selected = this.selectedAll; } } evaluateSelectionStatus() { ...

Transform your scene into a stunning 3D texture using THREE.js's 3D Render Targets feature

After exploring the THREE.js example available here, I am curious about how to avoid scenes rendered as textures from appearing 'flattened'. Essentially, I want to maintain the depth illusion within the scene when using a WebGLRenderTarget. I ha ...

Using bluebird library for revoking promises

Recently, I've been diving into the bluebird promises library. To practice using it, I set up a basic express app with just one file and one route - a GET request to /test. The scenario I'm working on involves a promise with an interval that res ...

Enclose specific content items with double div elements using JavaScript every nth time

I have been attempting to encapsulate two divs around every set of three content pieces received from an API call. The desired structure is as follows: <div class="carousel-inner"> <div class="item carousel-item"> <div cla ...