[{"content":"Assigning JavaScript Variables for Use in CSS Way 1: Native DOM Methods Using native DOM methods to modify CSS styles, for example:\n1document.getElementById(id).style.property = new style(); Within this new style block, you can utilize variables passed in from JavaScript.\nWhile this approach certainly works, it becomes rather cumbersome when dealing with more complex CSS modifications—such as animations. In such scenarios, the method described below proves to be far more essential.\nWay 2: CSS …","date":"2026-04-04","permalink":"/blog/posts/assign-js-to-css/","summary":"Assigning JavaScript Variables for Use in CSS Way 1: Native DOM Methods Using native DOM methods to modify CSS styles, for example:\n1document.getElementById(id).style.property = new style(); Within …","tags":["Javascript","Css"],"title":"Assign Js to Css"},{"content":"Find the coordinates of a point on a circle. Calculating the coordinates of a point on a circle typically depends on the information you already know (such as the angle, the position of the circle\u0026amp;rsquo;s center, etc.). The most commonly used method involves trigonometric functions.\nStandard Circle (Centered at the Origin) If the center of the circle is located at the origin $(0, 0)$ of the coordinate system, the radius is $r$, and the angle between the point and the positive direction of the …","date":"2026-03-21","permalink":"/blog/posts/calc-circle-point-coordinates/","summary":"Find the coordinates of a point on a circle. Calculating the coordinates of a point on a circle typically depends on the information you already know (such as the angle, the position of the …","tags":["calc"],"title":"Coordinates on a Circle"}]