2.0.1 • Published 5 years ago

vue-responsive-img-helpers v2.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

Vue Responsive Image Helpers

This is just a simple vue plugin to make working with (responsive) images a bit easier.

Keep in mind that it is meant mostly for personal use, and it is at the moment tailored for Bulma's breakpoints and imgix API.

Usage

The plugin adds 3 simple utility functions to the Vue global scope which helps you create values for img src, srcset, and sizes attributes. ###$createSrc(src, [options])

  • src: Base URL for the image
  • options: {width = 1600, fit = 'crop', heightRatio = .5625, suffix = ''} ###$createSrcSet(src, [options])
  • src: Base URL for the image
  • options: {fit = 'crop', heightRatio = .5625, max = 1600, min = 100, increment = 100, suffix = ''} ###$createSizes([options])
  • options: {desktop = '50vw', tablet = '75vw', mobile = '100vw'}

Sorry for the simple documentation. Then again it's mostly meant for personal use.

2.0.1

5 years ago

2.0.0

5 years ago

1.2.0

6 years ago

1.1.9

6 years ago

1.1.8

6 years ago

1.1.7

6 years ago

1.1.6

6 years ago

1.1.5

6 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago