Advertisement
Guest User

Untitled

a guest
Aug 21st, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. computed: {
  2. circleSizing() {
  3. let circles = document.getElementsByClassName("circle")
  4. for (let i = 0; i <= circles.length; i++) {
  5. circles[i].style.top = 10 * (i + 1)
  6. circles[i].style.bottom = 10 * (i + 1)
  7. circles[i].style.left = 10 * (i + 1)
  8. circles[i].style.left = 10 * (i + 1)
  9. }
  10. }
  11. },
  12.  
  13. mounted: function() {
  14. this.circleSizing();
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement