Skip to content

Commit a917bc7

Browse files
committed
Add top(), left(), right() and bottom() methods
1 parent eb4d5ab commit a917bc7

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/style.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -507,6 +507,22 @@ export class Style extends StandardAnimation {
507507
return this.style('zIndex', z);
508508
}
509509

510+
top(top) {
511+
return this.style('top', top);
512+
}
513+
514+
left(top) {
515+
return this.style('left', top);
516+
}
517+
518+
right(top) {
519+
return this.style('right', top);
520+
}
521+
522+
bottom(top) {
523+
return this.style('bottom', top);
524+
}
525+
510526
inset(value) {
511527
return this.style('inset', value);
512528
}

0 commit comments

Comments
 (0)