I’ve seen this used before to add a credit that only appears when you save the image. You append the credit to the bottom of the image, then crop the image with CSS using a technique like this to hide the credit. Then when somebody saves the image, they get the whole thing and the credit appears.
Somewhat related, but back in the old days (maybe better to say early days) we used a different technique although purely for fun.
Yes, you can clip an image, but you can also scale an image, making it half the size of the original. The fun-part is that Netscape Navigator would render all the even lines, and Internet Explorer rendered the uneven lines (or the other way around). Making the picture vendor-specific :-)
Since almost all the current browsers use the same render-engine (and if not probably the library) you can make you image bigger and hide some watermark in the non-rendered pixels.
You should, I think, at that point be seeing a square image of a jellyfish inside a red square. The square should be containing the image. When you hover, it should reveal the rest of the jellyfish (the image itself is rectangular, and wider than it is tall).
I'm using Firefox dev, it overflows for me. Are you sure you didn't hover the earlier screenshot of the unhovered image inside the red square, as opposed to the image inside a codepen embed?
Definitely using codepen. I can manipulate the scaling and view the html and css windows and stuff. I'm not using the latest firefox version, but it's not like this is a new feature right?
Your own damn fault. Also it's against the HN rules to complain about "tangential annoyances" such as "my own bad behavior got me flagged and blacklisted and now it's your fault"
I'd like to hear what behavior you imagine I've done.
"This is a broken link" is not a "tangential annoyance" and is a valid reason for flagging. It's also appropriate to comment, so that the poster or moderator can fix the link.
I’ve seen this used before to add a credit that only appears when you save the image. You append the credit to the bottom of the image, then crop the image with CSS using a technique like this to hide the credit. Then when somebody saves the image, they get the whole thing and the credit appears.
Somewhat related, but back in the old days (maybe better to say early days) we used a different technique although purely for fun.
Yes, you can clip an image, but you can also scale an image, making it half the size of the original. The fun-part is that Netscape Navigator would render all the even lines, and Internet Explorer rendered the uneven lines (or the other way around). Making the picture vendor-specific :-) Since almost all the current browsers use the same render-engine (and if not probably the library) you can make you image bigger and hide some watermark in the non-rendered pixels.
> Here is a demo where you can hover the image to show/hide the overflow:
Is something supposed to happen when I hover my mouse over the image? Because nothing happens. I'm using Firefox.
You should, I think, at that point be seeing a square image of a jellyfish inside a red square. The square should be containing the image. When you hover, it should reveal the rest of the jellyfish (the image itself is rectangular, and wider than it is tall).
(I'm also using FF, and it works for me.)
I'm using Safari on Mac and it also does not work for me.
yeah, I see the square jellyfish image inside the red square, but nothing changes when I hover.
2 replies →
[dead]
1 reply →
I'm using Firefox dev, it overflows for me. Are you sure you didn't hover the earlier screenshot of the unhovered image inside the red square, as opposed to the image inside a codepen embed?
Definitely using codepen. I can manipulate the scaling and view the html and css windows and stuff. I'm not using the latest firefox version, but it's not like this is a new feature right?
2 replies →
Broken link - it just says "403 Forbidden"
Still working for me, your IP or browser request might be flagged by their firewall or anti-bot protection
Your own damn fault. Also it's against the HN rules to complain about "tangential annoyances" such as "my own bad behavior got me flagged and blacklisted and now it's your fault"
https://news.ycombinator.com/item?id=49194630
I'd like to hear what behavior you imagine I've done.
"This is a broken link" is not a "tangential annoyance" and is a valid reason for flagging. It's also appropriate to comment, so that the poster or moderator can fix the link.
3 replies →