Skip to content

Remix useSubmit arbitrary data

I am trying to submit a form using Remix’s useSubmit hook. But I want to be able to pass arbitrary data along with my form submit data. I have form elements with some static values that have disabled/readonly attributes, which means their value will be null on form submission. However I have access to t…

Vertical to horizontal to vertical again scroll effect

I want to make a vertical to horizontal back to vertical scrolling effect that also works on mobile. I have found the following jQuery code snippet: But it doesn’t work very well on mobile, which is a deal breaker for me. I am looking for something more like these two examples: https://www.ls.graphics/d…

Jest command not recognized

So i just started learning about Test Driven Developement and as an example i was asked to run the command npm test helloWorld.spec.js in the terminal but i got this error : I’m working on windows and the only thing i have installed is node so what do i have to do? Answer Choose one of the following met…

ele = document.querySelector(el) for multiple instances of el

I have a swipe detection function detectswipe(el, func) that listens for data-animate=”swipe” and runs the function swipe(el, d) when swiped on mobile. The problem is it only runs on the first instance of data-animate=”swipe” and not every instance. How do I change my code to run on ev…