Having trouble integrating Bootstrap with Fullpage.js

After following this solution, I attempted to create a basic full-page layout using bootstrap.

I aim to have a front end that scrolls like a full page, ensuring responsiveness.

Folder Setup

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

Code Snippet

<!DOCTYPE html>
<html>
<head>
<link href="css/bootstrap.css" rel="stylesheet"/>
<link rel="stylesheet" type="text/css" href="src/jquery.fullPage.css" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1 /jquery.min.js"></script>
<!-- This line is optional. It is only necessary if you use the css3:false option and desire different easing effects from "linear", "swing", or "easeInOutCubic". -->
<script src="vendors/jquery.easings.min.js"></script>
<!-- This line is required when using the plugin option `scrollOverflow:true` -->
<script type="text/javascript" src="vendors/jquery.slimscroll.min.js"></script>
<script type="text/javascript" src="src/jquery.fullPage.js"></script>
<title>Test</title>
<script type="text/javascript">
  $(document).ready(function() {
      $('#fullpage').fullpage({
          sectionsColor: ['#f2f2f2','#4BBFC3','#7BAABE','whitesmoke'],
          css3: true
      });
  });
  </script>
  <style type="text/css">
       .section {
font-size: 6em;
text-align: center;
}
</style>
</head>
<body>
<div id="fullpage">
<div class="section">Section 1</div>
<div class="section">
<div class="slide">Slide 1</div>
<div class="slide">Slide 2</div>
<div class="slide">Slide 3</div>
</div>
<div class="section">Section 2</div>
<div class="section">Section 3</div>
</div>
<script src="js/bootstrap.min.js"></script>
</body>
</html>

Result

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

For designing the front end, I am utilizing Sublime Text Editor 3. There seems to be something missing as I am encountering an issue.

If anyone is able to offer assistance, it would be greatly appreciated.

Answer №1

Make sure to properly use all the external links; you might have missed some, so double-check everything.

 $(document).ready(function() {
      $('#fullpage').fullpage({
          sectionsColor: ['#f2f2f2','#4BBFC3','#7BAABE','whitesmoke'],
          css3: true
      });
  });
  .section {
font-size: 6em;
text-align: center;
}
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" rel="stylesheet"/>
<link href="https://cdnjs.cloudflare.com/ajax/libs/fullPage.js/3.0.5/fullpage.css" rel="stylesheet"/>


<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/fullPage.js/3.0.5/fullpage.js"></script>


<body>
<div id="fullpage">
<div class="section">Section 1</div>
<div class="section">
<div class="slide">Slide 1</div>
<div class="slide">Slide 2</div>
<div class="slide">Slide 3</div>
</div>
<div class="section">Section 2</div>
<div class="section">Section 3</div>
</div>
</body>

View the jsfiddle example 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

Shifted picture next to the accompanying words

I have successfully created a slideshow of images using JavaScript. <html> <head> <script language="JavaScript"> var i = 0; var path = new Array(); path[0] = "one.jpg"; path[1] = "two.jpg"; function swapImage() { document.slide ...

CSS issue: Font size

Can someone help me out with a CSS issue that has been tripping me up? I've been working with CSS for three years now, and this particular problem is stumping me. I have defined some styles in my CSS file that should be applied to the content of my w ...

Foundation 4 Framework: Mastering the Art of Clearing CSS Floats

I'm currently in the process of developing a website, but I am facing difficulties with clearing the floats. My website is built using the foundation 4 framework. Whenever I apply the .columns class to an element, it causes the elements to float left. ...

Unique title: "Curved Blocks with Unusual Shapes in SVG Path

Hey there, I'm new to working with SVG and Highcharts. I found a jsfiddle online that I would like to customize for my project, but I've encountered an issue with the rounded corner blocks of lines in the Result panel. Here is the link to the js ...

Implementing an interactive tab feature using jQuery UI

Recently, I was working on a project involving HTML and jQuery. Now, my goal is to create a dynamic tab with specific data when a button is clicked. This is my code for the JQuery-UI tab: $(document).ready(function() { var $tabs = $("#container-1 ...

Move the div with jQuery

I am currently working on making a div draggable without relying on jQuery UI. Here is the HTML code: <div class="wrapper"> <div class="toddler"></div> </div> And here is the script I have written: $.fn.slider = function () { ...

Sticky quicksand portfolio hover effect remains in place even after applying a filter

I have encountered an unusual issue with hover effects and filters. Unlike most people who face problems with quicksand and hover effects not being visible after filtering, I am experiencing the opposite problem. Upon applying a hover effect via jQuery, ev ...

Tips for Preventing the Previous Value from Being Displayed When Changing the Option in a Select Field Using the Live Change jQuery Function

In the table I am using, the select option is filled based on the number of rows in the table. I have implemented a live change function in jQuery to track changes and store them in a variable. However, when clicking the next option, it returns the previ ...

What are the steps to ensure the equalizer start button functions properly?

I have created an application that mimics the functionality of an equalizer by displaying changes in audio frequencies. Issues with animation arise when you click the "Start" button again. The animation resets and begins from the start. This can be pr ...

Endless cycle of changing border colors

I'm trying to achieve a specific effect where the border of a div changes colors in an infinite loop. However, I want this effect to be applied only to the border of the div and not the entire body background. Here is an example: http://jsfiddle.net/A ...

Asynchronous JavaScript function within a loop fails to refresh the document object model (DOM) despite

I have been working on a function that utilizes ajax to retrieve instructions from a backend server while the page is loading. The ajax code I've written retrieves the instructions based on the number provided and displays them using the response.setT ...

I'm looking for a way to convert an array value to JSON using jQuery

i need assistance in converting an array value into json format. An example is provided below: Sample Array [Management Portal!@!@Production Issue Handling!@!@/IONSWeb/refDataManagement/searchDynamicScripts.do, Management Portal!@!@ Event Browser!@!@/ION ...

It is impossible to replicate the toggle functionality of the navbar-collapse feature from Bootstrap's official website

Currently, I'm delving into Bootstrap by attempting to replicate the 'Company' theme showcased on W3schools. My main struggle lies with getting the navbar-collapse feature to work properly. Despite creating the toggle, clicking on it fails t ...

How To Send Form Data Using JQuery AJAX for Seamless Page Updates and Retrieving Data Dynamically

Here is My Code HTML <form id="msg_form"> <input type="text" name="msg_text"> <button type="submit" name="send">Send</button> </form> AJAX $(function () { $('#msg_form').on('send', functi ...

Using the jQuery dialog class selector with the each function

Having an issue with opening jQuery dialogs when clicking on buttons. Everything works fine when I have just one button and dialog, but things get complicated when dynamically creating multiple pairs of dialogs and buttons using a PHP loop. I tried using t ...

Sorting through names within a nested array based on specific criteria

I have been struggling to filter by item name for the past day and haven't been successful. The issue lies in my attempt to use a sample array for filtering. While I am able to filter by category successfully, the same cannot be said for filtering by ...

Nested child objects causing interference with mouseenter and mouseleave events

At the start, I am concealing a control panel known as myNestContainer. There is a button called navMyNest that, upon hovering, displays the myNestContainer. This functionality is working well. The problem arises when users try to explore the control pane ...

Using Jquery Simplyscroll to incorporate images on both the left and right side within a container or clip

I am currently utilizing Jquery Simplyscroll (http://logicbox.net/jquery/simplyscroll/) and I am seeking a way to incorporate a faded png image on both the left and right sides to prevent my images from appearing "cut off" while sliding through. Below is ...

Steps for inserting an image:

Looking for help adding a static header image to a simple HTML page that contains two div tags: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1 /DTD/xhtml1-strict.dtd"> <html> <head> ...

Creating a versatile design using a combination of grids, HTML tables, and media queries to ensure

When it comes to developing a responsive website, which method is superior: utilizing grid systems, employing media queries, or relying on HTML tables? ...