javascript stripe-banner-gsap教程主容器

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了javascript stripe-banner-gsap教程主容器相关的知识,希望对你有一定的参考价值。

import React from 'react';
import IconCarousel from '../IconCarousel/IconCarousel';
import all_icons from './icons';
import {X_OFFSET, Y_OFFSET} from '../constants';
const icons = [...all_icons].map((icon, index) => {
  let newIcon = {...icon};
  newIcon.image = `/img/logos/logo-${1 + (index % 4)}.png`;
  newIcon.s = icon.s || 1;
  newIcon.y = icon.y - Y_OFFSET;
  newIcon.x = icon.x - X_OFFSET;
  newIcon.title = "Company " + index
  return newIcon;
});

const App = () => (
  <IconCarousel icons={icons} />
)
export default App;

以上是关于javascript stripe-banner-gsap教程主容器的主要内容,如果未能解决你的问题,请参考以下文章

javascript JavaScript isset()等效: - JavaScript

JavaScript 使用JavaScript更改CSS(JavaScript)

JavaScript之基础-1 JavaScript(概述基础语法)

前端基础-JavaScript的基本概述和语法

JavaScript

JavaScript