Am trying to make product image(fotorama gallery), sticky
only upto product short description in bigger screens,like in amazOn
I tried bootstrap sticky-top,but it makes always sticky position untill scroll bottom.
I tried Magento stickty widget like below,but not working.
define([
"jquery",
"mage/sticky",
], function ($) {
'use strict';
$(document).ready(function () {
$('.gallery-placeholder').sticky({
container: '.columns',
spacingTop: 100,
stickyClass: '[sticky-class]'
});
});
});
Any help would be much appreciated,Thankyou..
Am using Magento 2.4.3 and bootstrap 5.2, Luma Theme