gpt-4-0314· OpenAI
WildChat-4.8M (AI2)
Fivem scripting NUI how can I have a placeholder Image and when you hover over the image…
- User
Fivem scripting NUI
how can I have a placeholder Image and when you hover over the image it expands
sorta like this
#imageHover { position: absolute; top: 10%; right: 75%; }
#image { src: ""; max-height: 40vh; max-width: 40vw; object-fit: scale-down; }
- Assistant
You can achieve the desired effect using CSS and HTML. Here, I provide you with the HTML and CSS code snippets to accomplish this task.
html<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" type="text/css" href="style.css"> <!-- Make sure you link your CSS file here --> <title>Image Hover</title> </head> <body> <div id="imageHover"> <img id="image" src="placeholder.jpg" alt="Placeholder Image"> <!-- Add your placeholder image source here --> </div> </body> </html>