Github Link
This one was quite mathematical.
I learned this new way of assigning values to variables
const {offsetWidth:width,offsetHeight:height} = hero;
where width and height are variables values are put into.
This one was quite mathematical.
I learned this new way of assigning values to variables
const {offsetWidth:width,offsetHeight:height} = hero;
where width and height are variables values are put into.
The MouseEvent.offsetX read-only property provides the offset in the X coordinate of the mouse pointer between that event and the padding edge of the target node.
The HTMLElement.offsetLeft read-only property returns the number of pixels that the upper left corner of the current element is offset to the left within the HTMLElement.offsetParent node.
No comments:
Post a Comment