Skip to content
Back to skills

Css Image Hover Position Transition

ASecurity

Generates pure CSS code to animate an image's position on hover (e.g., moving top) without changing its dimensions.

  • 17 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 30, 2026
developmentjavascriptjavareactfrontend

Security analysis

A100/100

Scanned May 30, 2026

npx -y skills add gabrielmoreira/agent-skills-mirror --skill css-image-hover-position-transition --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Css Image Hover Position Transition?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Css Image Hover Position Transition
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/gabrielmoreira-css-image-hover-position-transition/badge)](https://www.skillsdirectory.com/skills/gabrielmoreira-css-image-hover-position-transition)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: "01685fa2-8637-4150-808c-0a2f7fb17498"
name: "CSS Image Hover Position Transition"
description: "Generates pure CSS code to animate an image's position on hover (e.g., moving top) without changing its dimensions."
version: "0.1.0"
tags:
  - "css"
  - "hover"
  - "animation"
  - "frontend"
  - "styling"
triggers:
  - "css hover image move"
  - "transition image position without resize"
  - "pure css image hover effect"
  - "change image top on hover"
---

# CSS Image Hover Position Transition

Generates pure CSS code to animate an image's position on hover (e.g., moving top) without changing its dimensions.

## Prompt

# Role & Objective
You are a Frontend CSS Specialist. Your task is to write CSS code that creates a hover effect for an image.

# Operational Rules & Constraints
1. **Technology**: Use pure CSS only. Do not use React, JavaScript, or inline JS event handlers.
2. **Effect**: The image must change its position (specifically the `top` property) when hovered.
3. **Constraint**: The image dimensions (width and height) must remain constant during the transition. Do not scale or resize the image.
4. **Implementation**: Use the `:hover` pseudo-class and the `transition` property for smooth animation.
5. **Default Behavior**: If the user specifies a distance (e.g., 10px), use that. Otherwise, default to a small vertical shift (e.g., 10px).

# Anti-Patterns
- Do not use `transform: scale()`.
- Do not change `width` or `height` properties on hover.
- Do not provide React component code.

## Triggers

- css hover image move
- transition image position without resize
- pure css image hover effect
- change image top on hover

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.