mirror of
https://github.com/zen-browser/www.git
synced 2025-07-10 18:25:31 +02:00
Fix: simplify image transformation styles in HomeExtras component
This commit is contained in:
parent
b3bc7fe2cf
commit
bc56daf776
1 changed files with 6 additions and 26 deletions
|
@ -34,11 +34,6 @@ import { ArrowRight } from 'lucide-astro';
|
||||||
</section>
|
</section>
|
||||||
<style>
|
<style>
|
||||||
#browser-images {
|
#browser-images {
|
||||||
& img {
|
|
||||||
transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
|
|
||||||
}
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
& img:nth-child(1) {
|
& img:nth-child(1) {
|
||||||
transform: rotate(5deg) scale(1.05) translateX(-52%) translateY(-10%);
|
transform: rotate(5deg) scale(1.05) translateX(-52%) translateY(-10%);
|
||||||
}
|
}
|
||||||
|
@ -51,19 +46,4 @@ import { ArrowRight } from 'lucide-astro';
|
||||||
transform: rotate(-5deg) scale(1.05) translateX(-50%) translateY(-10%);
|
transform: rotate(-5deg) scale(1.05) translateX(-50%) translateY(-10%);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 1000px) {
|
|
||||||
& img:nth-child(1) {
|
|
||||||
transform: rotate(5deg) scale(1.05) translateX(-52%) translateY(-10%);
|
|
||||||
}
|
|
||||||
|
|
||||||
& img:nth-child(2) {
|
|
||||||
transform: rotate(2deg) scale(1.05) translateX(-50%) translateY(10%);
|
|
||||||
}
|
|
||||||
|
|
||||||
& img:nth-child(3) {
|
|
||||||
transform: rotate(-5deg) scale(1.05) translateX(-50%) translateY(-10%);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue