I need to put msg.kylmäpiste and msg. lämpöpiste into root variables to move corresponding balls in the flow
template node
<div id="bgr">
<div class="txt" id="txt1">{{msg.s1}}</div>
<div class="txt" id="txt2">{{msg.s2}}</div>
<div class="txt" id="txt3">{{msg.s3}}</div>
<div class="txt" id="txt4">{{msg.s4}}</div>
<div class="txt" id="txt5">{{msg.s5}}</div>
<div class="txt" id="txt6">{{msg.s6}}</div>
<div class="txt" id="txt7">{{msg.s7}}</div>
<div class="txt" id="txt8">{{msg.s8}}</div>
<div class="ball" id="ball1"></div>
<div class="ball" id="ball2"></div>
</div>
<style>
.ball{
position:absolute;
width: 40px;
height: 50px;
border-radius: 50%;
}
#ball1 {
margin: 25px 1360px;
background-color:blue
}
#ball2 {
margin: 25px 360px;
background-color:red
}
I try this and many other ones. Surely simple to fix
:root {
--lämpöpiste : {{msg.lämpöpiste }};
--kylmäpiste : {{msg.kylmäpiste }};
}
.ball{
position:absolute;
width: 40px;
height: 50px;
border-radius: 50%;
}
#ball1 {
margin: 25px var(--kylmäpiste)px;
background-color:blue
}
#ball2 {
margin: 25px var(--lämpöpiste)px;
background-color:red
}