1.0.1 • Published 2 years ago

slick-hero-slider-grapesjs v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

slick-hero-slider-grapesjs

A hero slider using Slick which you can add as a plugin in your Grapesjs page builder app.

To add this to you Grapesjs page builder app, install the package using the command:

npm install slick-hero-slider-grapesjs

or

yarn install slick-hero-slider-grapesjs

Go to where you initialized your Grapesjs editor and add the following:

import heroSlider from "slick-hero-slider-grapesjs";

const editor = grapesjs.init({

  /** other configs here */

  plugins: [heroSlider],

  pluginsOpts: {
    heroSlider: {},
  },

 /** other configs here*/

  // add jquery and slick scripts and styles CDNs here
  // this is necessary to run the needed styles and logic for the slick slider
  // you can refer to their original docs here: https://kenwheeler.github.io/slick/
  // add bootstrap as well since some custom styles are using bootstrap
  canvas: {
    styles: [
      "https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css",
      "https://fonts.googleapis.com/css2?family=Roboto&display=swap",
      "https://cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.min.css",
    ],
    scripts: [
      "http://code.jquery.com/jquery-1.11.0.min.js",
      "http://code.jquery.com/jquery-migrate-1.2.1.min.js",
      "https://cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.min.js",
    ],
  },
});
1.0.1

2 years ago

0.1.20

2 years ago

0.1.19

2 years ago

0.1.18

2 years ago

0.1.17

2 years ago

0.1.16

2 years ago

0.1.15

2 years ago

0.1.14

2 years ago

0.1.13

2 years ago

0.1.12

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

1.0.0

2 years ago