Skip to content

Commit

Permalink
feat: exp1
Browse files Browse the repository at this point in the history
  • Loading branch information
mussida committed Oct 21, 2024
1 parent bc7bc1a commit 308417f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,7 @@ export class MotionDetectionComponent implements AfterViewInit {
const img = this.renderer.createElement("img");
img.src = "assets/volpe.jpg"; // Percorso all'immagine che vuoi mostrare
img.style.position = "absolute";
img.style.width = "250px"; // Dimensioni fisse per l'immagine
img.style.height = "250px";
img.style.width = "450px"; // Dimensioni fisse per l'immagine

// Calcola la posizione in base alla cella della griglia con più movimento
img.style.left = `${col * gridWidth + (gridWidth / 2 - 75)}px`; // Centra l'immagine nella cella
Expand Down
2 changes: 1 addition & 1 deletion src/app/pages/experience/experience.component.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<div class="w-screen h-screen">
<div class="w-screen max-h-screen">
<app-motion-detection></app-motion-detection>
</div>

0 comments on commit 308417f

Please sign in to comment.