Skip to content

Instantly share code, notes, and snippets.

@NickHatBoecker
Last active May 5, 2021 19:54
Show Gist options
  • Save NickHatBoecker/9feb6bda54676ede4768b55f88dc72ac to your computer and use it in GitHub Desktop.
Save NickHatBoecker/9feb6bda54676ede4768b55f88dc72ac to your computer and use it in GitHub Desktop.
// src/components/Newsticker.vue
<style lang="scss" scoped>
.newsticker {
height: 100px;
overflow: hidden;
position: relative;
&__text {
white-space: nowrap;
position: absolute;
top: 50%;
transform: translateY(-50%);
}
}
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment