How to use jarallax - 1 common examples

To help you get started, we’ve selected a few jarallax examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github opteroncx / MoePhoto / src / js / common.js View on Github external
import './custom-file-input.js'
import { getSession, newMessager } from './message.js'
const compareVersion = (a, b) => {
  a = a.split('.')
  b = b.split('.')
  var i = 0
  while (i < a.length && i < b.length) {
    let n0 = +a[i],
      n1 = +b[i]
    let res = n0 < n1 ? -1 : n0 > n1 ? 1 : 0
    if (res) return res
  }
  let res = a.length < b.length ? -1 : a.length > b.length ? 1 : 0
  return res
}
jarallax($('.jarallax'), {
  speed: 0.5,
  imgWidth: 1366,
  imgHeight: 768
})
$(_ => {
  $('#vertical-ticker').totemticker({
    row_height: '100px',
    next: '#ticker-next',
    previous: '#ticker-previous',
    stop: '#stop',
    start: '#start',
    mousestop: true
  })
})
$(document).ready($ => {
  $('.scroll ').click(function (event) {

jarallax

Smooth parallax scrolling effect for background images, videos and inline elements. Code in pure JavaScript with NO dependencies + jQuery supported. Youtube, Vimeo and Local Videos parallax supported.

MIT
Latest version published 6 months ago

Package Health Score

64 / 100
Full package analysis

Popular jarallax functions