Skip to content

Commit

Permalink
Merge pull request #69 from Tobbe/tobbe-fix-startx-cardshadow
Browse files Browse the repository at this point in the history
Fix startX and card-shadow errors
  • Loading branch information
Tobbe authored Sep 8, 2023
2 parents 9f2baec + dd96d12 commit a2eda06
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions web/src/components/Badge/Badge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,6 @@ const Badge = ({
})
)

// let startX = 0
// let startY = 0

const ENDX = myCordFront.current.getAttribute('x2')
const ENDY = myCordFront.current.getAttribute('y2')

Expand All @@ -140,15 +137,7 @@ const Badge = ({

// CREATE THE DRAGGABLE
myDraggable.current = Draggable.create(BADGE, {
onPress: function (e) {
startX = e.x
startY = e.y
},
onDrag: function () {
gsap.to('.card-shadow', {
scale: 0.75,
y: 100,
})
gsap.set(CORD_FRONT, {
attr: {
x2: this.x + 175,
Expand All @@ -168,11 +157,6 @@ const Badge = ({
})
},
onRelease: function () {
gsap.to('.card-shadow', {
scale: 1,
y: 0,
duration: 0.5,
})
gsap.to(CORD_FRONT, {
attr: {
x2: ENDX,
Expand Down

0 comments on commit a2eda06

Please sign in to comment.