I have an app that I have been working on for months now, gradually adding functionality as I learn how to do new things. I’m successfully getting JSON data back from requests just fine, but I have a question about what to do with some of the data.
is the source file of what you see when you hover over the video thumbnail in the “Videos” tab of a channel, is that correct? When I hover, the thumbnail changes from a still image to what looks like an animated gif-type looping image. How is this accomplished? I don’t necessarily want code written for me, just point me in the general direction, because I don’t even know what search terms to use to google it!
When I look at the object, opening it up in the browser, I can see it is a single image, very long and narrow. It looks like a film strip.
I apologize for being so vague, and not having any code to show you. I’m just at a total loss because I don’t even know what this is.
Well, the solutions and suggestions provided earlier will work, if I hard-code the url from the JSON response into the CSS.
I have tried using the same variable that I’m using everywhere else in my HTML and assigning it to an attribute in several different ways. On MDN I found this:
content: attr(data-foo) " ";
which seems like it should work with assigning variables where they have “hello”, but it’s not working. The variable was returning an image strip (just putting image tags around it) but now I can’t get it to return anything, is it just me?