Navigational Menu Sliding in Compact Area

Hello! I am looking for advice on how to code in order to achieve the design shown in image 1 and create a navigation system.

My challenge is that I have 5 navigation items but limited space. My goal is to display only 3 items at a time, hence why I have included left and right arrows. By clicking the respective arrow, users will be able to see the other menu items while the other 2 are hidden.

I am currently using bootstrap and font awesome for the arrow icons.

Design Objective

https://i.sstatic.net/9KRex.png

Current Layout

https://i.sstatic.net/rR1N0.png

Answer №1

If you want to display a carousel with owl Carousel that shows only 3 elements at a time and allows users to scroll through the rest when clicked, you can check out the demo here:

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

Is there a way to apply border-radius to an element with a scrollbar?

https://i.sstatic.net/aJsL8.png I attempted the following approach: element::-webkit-scrollbar-corner { border-bottom-right-radius: 20px !important; } however, it did not yield the desired result. ...

What is the best way to add an image using a textarea or HTML editor?

Every time a user inputs text into the textarea, it works fine. However, issues arise when they try to insert an image... For instance, if they input this code in the textarea (Thumbnail image linked code) <a href="http://www.ultraimg.com/image/1V6n"& ...

Using Ajax in a separate JavaScript file

How can I retrieve data from an Ajax call made from a different .js file? Here is the code snippet I have been working with: function ajax(url, success, error) { success += "(data)"; error += "(xhr, ajaxOptions, thrownError)"; console.log("St ...

Importance of prioritizing CSS files on a webpage with multiple stylesheets

Utilizing various CSS files has helped me organize my code, but it has also introduced some styling priority conflicts where certain codes overwrite others. I am now exploring ways to prioritize the CSS files to ensure that high-priority files are not ove ...

Designing the footer for small devices using Bootstrap 4, including layout, responsiveness, and hiding functionalities

Just diving into the world of Bootstrap 4 and facing a challenge with my page footer layout. I have a mockup that I'm trying to replicate: https://i.sstatic.net/pXyMR.png This is what I've come up with so far: index.html (snippet): <!-- foo ...

Prevent multiple requests on jQuery infinite scrolling

I have implemented pagination on my website where the next page is loaded automatically when the user reaches the bottom of the page. This is achieved by using jQuery's .on('scroll', this.detectScroll()) method which triggers a function to l ...

Ajax retrieves the server's response and stores it in a variable for future use in PHP

Seeking assistance with a dilemma I've encountered. As someone who is new to working with Ajax and PHP, any guidance or support would be greatly appreciated. I have a database locally stored on my localhost server. My goal is to retrieve information ...

Can CSS be utilized to consistently display text in a uniform manner?

Currently developing a unique Qur'an app for Muslims, standing out from the already existing ones in the market. There are two common types of Qur'an apps available: one that replicates the exact look of a physical copy, page by page, using imag ...

Confused about the path

After completing an AngularJS lesson, I encountered an issue where Angular was not able to understand links to the details page, such as template/1, when clicking on a link from the browser. However, when manually entering the URL in the address bar of the ...

Every time I click, the click event is getting attached repeatedly through the on method

Here is the HTML code that I am working with: <div class="connect"> <ul> <li><a href="#">Assign a Task</a></li> <li><a attr="viewCard" href="#">View Ca ...

Placing miniature vessels within a larger vessel, where two small containers fit on one level of the larger container (refer to images)

I am looking for a way for users to input text in the "your text" container and then click "add". This action should create a new container within the larger red-lined container with the information provided by the user. I know how to do this already, but ...

fetch() operates successfully in Extension but encounters difficulties in Chrome Console/Snippet

I am currently facing an issue with my Chrome Extension. The extension performs a successful GET request, but when I try to replicate the same action in the Chrome Console or Snippets, I encounter errors. Here is a minimal example of the code I am using: f ...

Exploring the capabilities of Google Drive API using Requests library

I am interested in streaming a file from a remote source to Google Drive. By utilizing the request library, you can easily download files locally like so: request('http://google.com/doodle.png').pipe(fs.createWriteStream('doodle.png') ...

Trigger Chrome Extension Background Page Using a Message

Currently, I am in the process of developing my initial chrome extension and focusing on establishing message passing and background.js functionality. However, it seems like my background.js file is not being triggered or receiving any messages. I am seeki ...

What is the reason for the checkboxes in vuejs not being rendered with the checked attribute set

When working on an edit form, I encountered a situation where I had multiple options to choose from. These options were fetched via ajax using axios and assigned to the variable permisos in the component. Later, these options are rendered through a v-for l ...

Apply a unique design to a class by clicking on a button

There are 3 identical boxes with the same classes and a button: function changeColorAndAddPadding() { /* ??? */ } .box { border: 1px solid; display: inline; } <button onclick="changeColorAndAddPadding();">Click Here</button> <d ...

Angular UI.Bootstrap radio buttons behave oddly when used in conjunction with ng-repeat

Having trouble dynamically generating options for a radio model using Angular's ui.bootstrap. I attempted to ng-repeat over an array to use its contents for the btn-radio attribute as shown below: //In the controller $scope.radioModel = undefined; $ ...

I'm looking to add some borders to my image using bootstrap/CSS - does anyone know how this can be achieved

I have designed the UI, but I'm struggling to create the border effect shown in the image below: https://i.sstatic.net/Jdp17.png <div> <img class='image1' src='https://www.w3schools.com/w3css/img_lights.jpg' /> ...

Creating animated shapes using JavaScript

Looking for some assistance on how to create animations for shapes on a canvas, specifically having them bounce back after hitting the edge. I'm facing an issue where my ball has velocity but my other shapes do not. Here's the code I've been ...

Enhance Your Website with Dynamic Navigation Animation

Seeking assistance with animating a navigation bar on and off the screen from the left side. The nav is not animating as expected using the latest version of jquery.min.js. The first step was to animate the nav upon clicking an object. View the current pro ...