There is already a full-fledged free extension available on Magento's marketplace and Github

Magento: https://marketplace.magento.com/ambab-module-slidingcart.html

Github: https://github.com/ambab-infotech/slidingcart

Blog: https://roshanyadav007.wordpress.com/2020/01/24/sliding-cart-extension-for-magento-2-magento-2-3-x/

This might help someone.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.