Skip to content
Snippets Groups Projects
Commit 7081d807 authored by Liliana Sanfilippo's avatar Liliana Sanfilippo
Browse files

fixed animation column problem

parent 6e78797b
No related branches found
No related tags found
No related merge requests found
Pipeline #401541 passed
...@@ -53,6 +53,30 @@ ...@@ -53,6 +53,30 @@
display: none; display: none;
} }
.col-max{
flex: 0 0 0%;
width: max-content !important;
min-width: 77% !important;
max-width: 90% !important;
}
.col-2{
width:16.66666667% !important;
}
.col-1{
width: 8.33333333% !important;
}
.col-max-10{
flex: 0 0 auto;
max-width: 83.33333333% !important;
}
.col{
max-width: 100% !important;
}
/* * * * * * * */ /* * * * * * * */
/* * * BODY* * */ /* * * BODY* * */
...@@ -460,6 +484,10 @@ svg { ...@@ -460,6 +484,10 @@ svg {
max-width: 100%; max-width: 100%;
display: block; display: block;
} }
.s-svg{
max-width: 80%;
}
img .middle{ img .middle{
vertical-align:middle; vertical-align:middle;
} }
......
...@@ -28,8 +28,8 @@ console.log("Started TestSVG") ...@@ -28,8 +28,8 @@ console.log("Started TestSVG")
scrollTrigger: { scrollTrigger: {
trigger: "svg", trigger: "svg",
scrub: true, scrub: true,
start:"top center", start:"top middle",
end: "bottom center" end: "bottom middle"
} }
}) })
...@@ -56,7 +56,7 @@ console.log("Started TestSVG") ...@@ -56,7 +56,7 @@ console.log("Started TestSVG")
return ( return (
<div className="Animation"> <div className="col-8">
<svg id="svg" xmlns="" viewBox="0 0 1980 4400"> <svg id="svg" xmlns="" viewBox="0 0 1980 4400">
......
...@@ -6,8 +6,9 @@ import TestSVG from "../components/testsvganimation"; ...@@ -6,8 +6,9 @@ import TestSVG from "../components/testsvganimation";
export function Example() { export function Example() {
return ( return (
<> <>
<TestSVG></TestSVG> <div className="col">
<div className="col"> <div className="col">
<TestSVG></TestSVG>
<h3 className="example">Exercises</h3> <h3 className="example">Exercises</h3>
<i><h6>By Your name</h6></i> <i><h6>By Your name</h6></i>
<div className="example-exercise"> <div className="example-exercise">
...@@ -185,6 +186,7 @@ export function Example() { ...@@ -185,6 +186,7 @@ export function Example() {
</div>
</> </>
); );
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment