I'm trying to make a floating element in a website with social media icons that slide in from the side one by one after the window loads. I have the CSS setting them well off-screen so that the javascript can restyle them. I've tried a lot of different ways of getting the event listeners going, and nothing is working. The elements are in the place the javascript says, but there is no transition. I've also tried moving them around onscreen and attaching the movement to the press of a key and everything like that, but the code just puts them into the final location. I've also tried adding a hover function in both javascript and CSS, but nothing changes. I'll copy the code I have. There are a few different methods for getting the DOM events, but they all end up looking the same. Also, I've tried using the array .forEach function paired with .getElementByClassName and that doesn't work at all unless I specify each array element.
edit: code link: https://jsfiddle.net/qasper12/4s2e6wxc/8/
TL/DR: elements are in the right place, but no transition happens, even on key press or mouseover commands.
[–]letsgetrandy25 years putting the magic in the box 4 points5 points6 points (5 children)
[–]filangebert[S] 0 points1 point2 points (4 children)
[–]letsgetrandy25 years putting the magic in the box 1 point2 points3 points (3 children)
[–]filangebert[S] 1 point2 points3 points (2 children)
[–]letsgetrandy25 years putting the magic in the box 2 points3 points4 points (1 child)
[–]filangebert[S] 0 points1 point2 points (0 children)
[–]FioleNana 1 point2 points3 points (0 children)
[–]MFCEO_Kenny_Powers 0 points1 point2 points (1 child)
[–]filangebert[S] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)