Moveing Background Is Jerking to much !!!

using UnityEngine;
using System.Collections;

public class LayerScript : MonoBehaviour {

public float Speed;
public Transform OtherPiece;
// Use this for initialization
void Start () {

}

// Update is called once per frame
void Update () {
	if(GameManager.Instance.CurrentGameState == GameState.InGame)
	{
		if (transform.position.x < -35.5f) {
			transform.position = new Vector3(OtherPiece.position.x,this.transform.position.y,0);
		} else {
			transform.Translate (-1 * Speed * Time.deltaTime, 0, 0);
		}
	}
}

}

If OtherPiece.x is greater than -35.5, it will jerk because it will begin to translate left again and then go back to OtherPiece.position.x when it is less than -35.5.

Just recommending for you to either post a video or be more specific when you say ‘jerking’ ( ͡° ͜ʖ ͡°)

i recomend you use sin and cosine functions if you want smooth movement