![38% of CISOs Fear They’re Not Moving Fast Enough on AI](https://cdn.sanity.io/images/cgdhsj6q/production/faa0bc28df98f791e11263f8239b34207f84b86f-1024x1024.webp?w=400&fit=max&auto=format)
Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
vue-horizontal
Advanced tools
An ultra simple pure vue horizontal layout for modern responsive web with zero dependencies.
At its core, Vue Horizontal is an ultra simple pure vue horizontal layout for modern responsive web with zero dependencies. Vue Horizontal is also an ultra complex code snippet dossier with over 100 SPA/SSR/SSG friendly recipes for your design needs.
npm i vue-horizontal
# or
yarn add vue-horizontal
# or via <script>
https://cdn.jsdelivr.net/npm/vue-horizontal@0.x.x/dist/vue-horizontal.esm.min.js
<script>
import VueHorizontal from "vue-horizontal";
export default {
components: {VueHorizontal}
}
</script>
import Vue from 'vue';
import VueHorizontal from "vue-horizontal";
Vue.component(VueHorizontal)
<!-- For latest release: https://github.com/fuxingloh/vue-horizontal/releases -->
<script src="https://unpkg.com/vue-horizontal@0.6.0"></script>
<template>
<vue-horizontal>
<section v-for="item in items" :key="item.title">
<h3>{{ item.title }}</h3>
<p>{{ item.content }}</p>
</section>
</vue-horizontal>
</template>
<script>
import VueHorizontal from "vue-horizontal";
export default {
components: {VueHorizontal},
data() {
return {
// E.g: creates 20 array items...
items: [...Array(20).keys()].map((i) => {
return {title: `Item ${i}`, content: `🚀 Content ${i}`};
}),
}
}
}
</script>
<style scoped>
section {
padding: 16px 24px;
background: #f5f5f5;
}
</style>
In Vue Horizontal, smooth scrolling is enabled by default. With scroll-behavior: smooth, it enables smooth scrolling experience when scroll event is triggered by programmatic calls. Although this is not a breaking functional feature, it provides a "smooth" scrolling user experience.
As of December 2020, there is only a 76% cross browser compatibility (88% if you include Safari experimental feature flag). Meantime you should polyfill this feature with more information provided here. Polyfill should be done by the user, there are no plans to incorporate this natively in the library.
Scroll snap align or scroll-snapping, is a CSS technique that allows customizable scrolling experiences like pagination
of carousels by setting defined snap positions. Vue Horizontal has it enabled by default, to disable you can set
<vue-horizontal snap="none">
.
As of December 2020, there is a 94%+ cross browser compatibility. You can choose to polyfill this, but it's more of an aesthetic feature rather than a breaking functional requirement.
Setup, develop & test.
npm install # install
npm run serve # dev
npm run cypress:run # e2e testing
Originally, this project started out as another project called vue-horizontal-list. I created the origin project because I liked how AirBnb does their horizontal layout. I couldn't find a library that implements it vue natively without relying on a legacy js/jquery dependency.
This project is another take on it with an ultra simple implementation that is extensible and moves the responsibility to the user rather than the library.
FAQs
An ultra simple pure vue horizontal layout for modern responsive web with zero dependencies.
The npm package vue-horizontal receives a total of 0 weekly downloads. As such, vue-horizontal popularity was classified as not popular.
We found that vue-horizontal demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.