Giter Site home page Giter Site logo

flickity-bg-lazyload's People

Contributors

desandro avatar npmcdn-to-unpkg-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

flickity-bg-lazyload's Issues

Not compatible with flickity v2.2.0

Unfortunately, the plugin stopped working after updating flickity to v2.2.0. The background image is not set in the style attribute of the active cell.

Incorrect documentation

The README for browserify in this repo says:

var Flickity = require('flickity-flickity-bg-lazyload');

when it should be:

var Flickity = require('flickity-bg-lazyload');

Not compatible with Flickity v1

Hi Desandro,
i was not able to run the bg lazyload with flickity!

After switching event select to cellSelect

// Flickity background lazyload v1.0.0

proto._createBgLazyLoad = function() {
  //this.on('select', this.bgLazyLoad); // does not work for me
  this.on('cellSelect', this.bgLazyLoad);
};

the code works as expected!

Can you confirm, that i am using the code right?

BTW: Will this feature be part of flickity 2.x and when will you release the upcomming version?

Thanks for the great library pieces.

Regards Holger

Use tag "picture"

How can I use the "picture" tag? I want to use different images depending on the size of the screen.

Uncaught TypeError: Cannot read property 'createMethods' of undefined

Dave:

Getting a weird error here, thought you might have some insights. Whenever I include the flickity-bg-lazyload package via Bower, I get this error in the console:
Uncaught TypeError: Cannot read property 'createMethods' of undefined

Thumbed through a lot of documentation and found a similar type of issue in the Masonry repo:
desandro/masonry#618

Interestingly, the comment towards the bottom [https://github.com/desandro/masonry/issues/618#issuecomment-136295697] deals with a similar stack to what I'm building on: WordPress with the Roots / Sage ecosystem. I tried her workaround with no avail.

Here is my bower.json file:

{
  "name": "sage",
  "homepage": "https://roots.io/sage/",
  "authors": [
    "Ben Word <[email protected]>"
  ],
  "license": "MIT",
  "private": true,
  "dependencies": {
    "bootstrap-sass": "3.3.6",
    "flickity": "^2.0.0",
    "flickity-bg-lazyload": "^1.0.0",
    "jquery.lazyload": "^1.9.7",
    "waypoints": "^4.0.1"
  },
  "overrides": {
    "flickity-bg-lazyload": {
      "main": ["./dist/scripts/flickity-bg-lazyload.js"]
    },
    "bootstrap-sass": {
      "main": [
        "./assets/stylesheets/_bootstrap.scss",
        "./assets/javascripts/bootstrap/transition.js",
        "./assets/javascripts/bootstrap/button.js",
        "./assets/javascripts/bootstrap/collapse.js",
        "./assets/javascripts/bootstrap/modal.js",
        "./assets/javascripts/bootstrap/tab.js"
      ]
    }
  }
}

Also, this is how my scripts load on the page, which seems ok to me:

<script type="text/javascript" src="//localhost:3000/wp-includes/js/jquery/suggest.min.js?ver=1.1-20110113"></script>
<script type="text/javascript" src="//localhost:3000/wp-content/themes/aa-theme/dist/scripts/flickity.js"></script>
<script type="text/javascript" src="//localhost:3000/wp-content/themes/aa-theme/dist/scripts/flickity-bg-lazyload.js"></script>
<script type="text/javascript" src="//localhost:3000/wp-content/themes/aa-theme/dist/scripts/clamp.js"></script>
<script type="text/javascript" src="//localhost:3000/wp-content/themes/aa-theme/dist/scripts/jquery-lazyload.js"></script>
<script type="text/javascript" src="//localhost:3000/wp-content/themes/aa-theme/dist/scripts/waypoints.js"></script>
<script type="text/javascript" src="//localhost:3000/wp-content/themes/aa-theme/dist/scripts/main.js"></script>

Let me know if you have any insight on this one, thanks in advance.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.